启动失败
来源:1-13 -HDFS格式化及启停
慕尼黑5219940
2018-10-05
hadoop001: Warning: Permanently added ‘hadoop001,192.168.174.140’ (ECDSA) to the list of known hosts.
hadoop001: chown: changing ownership of ‘/home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs’: Operation not permitted
hadoop001: starting namenode, logging to /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-namenode-hadoop001.out
hadoop001: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/sbin/hadoop-daemon.sh: line 159: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-namenode-hadoop001.out: Permission denied
hadoop001: head: cannot open ‘/home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-namenode-hadoop001.out’ for reading: No such file or directory
hadoop001: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/sbin/hadoop-daemon.sh: line 177: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-namenode-hadoop001.out: Permission denied
hadoop001: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/sbin/hadoop-daemon.sh: line 178: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-namenode-hadoop001.out: Permission denied
localhost: Warning: Permanently added ‘localhost’ (ECDSA) to the list of known hosts.
localhost: chown: changing ownership of ‘/home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs’: Operation not permitted
localhost: starting datanode, logging to /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-datanode-hadoop001.out
localhost: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/sbin/hadoop-daemon.sh: line 159: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-datanode-hadoop001.out: Permission denied
localhost: head: cannot open ‘/home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-datanode-hadoop001.out’ for reading: No such file or directory
localhost: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/sbin/hadoop-daemon.sh: line 177: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-datanode-hadoop001.out: Permission denied
localhost: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/sbin/hadoop-daemon.sh: line 178: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-datanode-hadoop001.out: Permission denied
Starting secondary namenodes [0.0.0.0]
0.0.0.0: Warning: Permanently added ‘0.0.0.0’ (ECDSA) to the list of known hosts.
0.0.0.0: chown: changing ownership of ‘/home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs’: Operation not permitted
0.0.0.0: starting secondarynamenode, logging to /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-secondarynamenode-hadoop001.out
0.0.0.0: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/sbin/hadoop-daemon.sh: line 159: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-secondarynamenode-hadoop001.out: Permission denied
0.0.0.0: head: cannot open ‘/home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-secondarynamenode-hadoop001.out’ for reading: No such file or directory
0.0.0.0: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/sbin/hadoop-daemon.sh: line 177: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-secondarynamenode-hadoop001.out: Permission denied
0.0.0.0: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/sbin/hadoop-daemon.sh: line 178: /home/xingtb/app/hadoop-2.6.0-cdh5.7.0/logs/hadoop-xingtb-secondarynamenode-hadoop001.out: Permission denied
18/10/05 18:54:48 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
1回答
-
慕尼黑5219940
提问者
2018-10-05
删除root用户创建的logs目录,切换普通用户执行就可以了
012018-10-05
相似问题