我正在研究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