每当安全模式中的hadoop(start-all.sh)namenode

时间:2017-04-19 00:58:46

标签: linux ubuntu hadoop hadoop2

我正在研究hadoop ..现在。

每当hadoop(start-all.sh)namenode in safemode ...

stop-all.sh并重新开始,它始终处于安全模式...

hadoop version : 1.2.1
hadoop mode : pseudo distributed mode 
os : virtualbox ubuntu 

hadoop dfsadmin -safemode leave工作之后......

vagrant@vagrant-ubuntu-trusty-64:~/download/source/chapter4/WordCount$ hadoop fs -rmr /output2
Warning: $HADOOP_HOME is deprecated.

rmr: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot delete /output2. Name node is in safe mode.
vagrant@vagrant-ubuntu-trusty-64:~/download/source/chapter4/WordCount$ hadoop dfsadmin -safemode leave
Warning: $HADOOP_HOME is deprecated.

Safe mode is OFF
vagrant@vagrant-ubuntu-trusty-64:~/download/source/chapter4/WordCount$ hadoop fs -rmr /output2
Warning: $HADOOP_HOME is deprecated.

Deleted hdfs://localhost:9000/output2

0 个答案:

没有答案