hadoop1.0.3 Namenode启动失败
Namenode启动失败:
查看日志 /var/log/hadoop/下日志,错误信息:/tmp/hadoop-hadoop/dfs/name is in aninconsistent state: storage directory does not exist or is not accessible.
解法一:解决方案就很简单,这些目录的位置都是根据Hadoop.tmp.dir的位置确定的,所以只需要在conf/core-site.xml覆盖hadoop.tmp.dir的默认值即可:...
<property>
<
name
>Hadoop.tmp.dir</
name
>
<value>/home/javoft/Documents/hadoop/
hadoop-
${user.
name
}</value>
<description>Abase for other temporary directories.</description>
</property>
解法二:
hdfs-site.xml位置是否在/etc/hadoop/ 以及配置是否正确
解法三:重启系统执行 hadoop namenode –format