nagaraju@nagaraju:/usr/local/softwares/hadoop-2.10.0$ sbin/stop-all.sh
This script is Deprecated. Instead use stop-dfs.sh and stop-yarn.sh
Stopping namenodes on [localhost]
localhost: chown: changing ownership of ‘/usr/local/softwares/hadoop-2.10.0/logs’: Operation not permitted
localhost: no namenode to stop
localhost: chown: changing ownership of ‘/usr/local/softwares/hadoop-2.10.0/logs’: Operation not permitted
localhost: no datanode to stop
Stopping secondary namenodes [0.0.0.0]
0.0.0.0: chown: changing ownership of ‘/usr/local/softwares/hadoop-2.10.0/logs’: Operation not permitted
0.0.0.0: no secondarynamenode to stop
stopping yarn daemons
chown: changing ownership of ‘/usr/local/softwares/hadoop-2.10.0/logs’: Operation not permitted
no resourcemanager to stop
localhost: chown: changing ownership of ‘/usr/local/softwares/hadoop-2.10.0/logs’: Operation not permitted
localhost: no nodemanager to stop
chown: changing ownership of ‘/usr/local/softwares/hadoop-2.10.0/logs’: Operation not permitted
no proxyserver to stop
nagaraju@nagaraju:/usr/local/softwares/hadoop-2.10.0$ sudo sbin/stop-dfs.sh
Stopping namenodes on [localhost]
root@localhost’s password:
localhost: Permission denied, please try again.
root@localhost’s password:
nagaraju@nagaraju:/usr/local/softwares/hadoop-2.10.0$
localhost: Permission denied, please try again.
root@localhost’s password:
localhost: root@localhost: Permission denied (publickey,password).
^C
nagaraju@nagaraju:/usr/local/softwares/hadoop-2.10.0$ cd ..
nagaraju@nagaraju:/usr/local/softwares$ sudo chown nagaraju:nagaraju hadoop-2.10.0/
nagaraju@nagaraju:/usr/local/softwares$ ls -l
total 12
drwxr-xr-x 11 nagaraju nagaraju 4096 Jan 7 14:02 hadoop-2.10.0
drwxr-xr-x 8 hduser hadoop 4096 Jan 6 17:13 hbase-2.2.2
drwxr-xr-x 5 hduser hadoop 4096 Dec 25 11:44 solr-8.3.1
nagaraju@nagaraju:/usr/local/softwares$ cd hadoop-2.10.0/
nagaraju@nagaraju:/usr/local/softwares/hadoop-2.10.0$ sbin/stop-all.sh
This script is Deprecated. Instead use stop-dfs.sh and stop-yarn.sh
Stopping namenodes on [localhost]
localhost: chown: changing ownership of ‘/usr/local/softwares/hadoop-2.10.0/logs’: Operation not permitted
localhost: no namenode to stop
localhost: chown: changing ownership of ‘/usr/local/softwares/hadoop-2.10.0/logs’: Operation not permitted
localhost: no datanode to stop
Stopping secondary namenodes [0.0.0.0]
0.0.0.0: chown: changing ownership of ‘/usr/local/softwares/hadoop-2.10.0/logs’: Operation not permitted
0.0.0.0: no secondarynamenode to stop
stopping yarn daemons
chown: changing ownership of ‘/usr/local/softwares/hadoop-2.10.0/logs’: Operation not permitted
no resourcemanager to stop
localhost: chown: changing ownership of ‘/usr/local/softwares/hadoop-2.10.0/logs’: Operation not permitted
localhost: no nodemanager to stop
chown: changing ownership of ‘/usr/local/softwares/hadoop-2.10.0/logs’: Operation not permitted
no proxyserver to stop
nagaraju@nagaraju:/usr/local/softwares/hadoop-2.10.0$ cd ..

To solve the problem, we need to add -R to give permission to all the children of the folder.


nagaraju@nagaraju:/usr/local/softwares$ sudo chown -R nagaraju:nagaraju hadoop-2.10.0/
nagaraju@nagaraju:/usr/local/softwares$ cd hadoop-2.10.0/

nagaraju@nagaraju:/usr/local/softwares/hadoop-2.10.0$ sbin/stop-all.sh
This script is Deprecated. Instead use stop-dfs.sh and stop-yarn.sh
Stopping namenodes on [localhost]
localhost: no namenode to stop
localhost: no datanode to stop
Stopping secondary namenodes [0.0.0.0]
0.0.0.0: no secondarynamenode to stop
stopping yarn daemons
no resourcemanager to stop
localhost: no nodemanager to stop
no proxyserver to stop
nagaraju@nagaraju:/usr/local/softwares/hadoop-2.10.0$ jps
14761 MRAppMaster
18459 Jps
nagaraju@nagaraju:/usr/local/softwares/hadoop-2.10.0$

Leave a Reply

Your email address will not be published. Required fields are marked *