hdfs live node = 0 | Hadoop HDFS

来源:互联网 发布:linux为什么需要挂载 编辑:程序博客网 时间:2024/06/05 16:09

image

Your DataNodes won't start, and you see something like this in logs/*datanode*:
Incompatible namespaceIDs in /tmp/hadoop-ross/dfs/data
原因
Your Hadoop namespaceID became corrupted. Unfortunately the easiest thing to do reformat the HDFS.
solution
You need to do something like this:
bin/stop-all.sh
rm -Rf /tmp/hadoop-your-username/*
bin/hadoop namenode –format

参考:http://www.hadoopor.com/thread-71-1-1.html