hadoop-无法 运行 namenode 没有格式

hadoop-Not able to run namenode without a format

我知道以前有人问过这个问题,看到了以下解决方案:

<!-- to be modified in hdfs-site.xml-->
    <property>

        <name>dfs.name.dir</name>

        <value>/home/hduser/hadoop/data</value>

    </property>

我修改了我的 hdfs-site.xml 文件,还删除了临时 directory.But 的内容,但没有格式化 namenode,它无法启动。 另外,value标签中给出的目录路径是否应该已经存在?

有什么建议我在上述更新中遗漏了什么?

without formatting the namenode,it dosen't start Blockquote

如前所述here,您需要格式化namenode。

should the path of the directory given in the value of the value tag be already existing?

是的。 namenode 和 datanode 目录都应该存在,最重要的是应该对 HDFS 用户有适当的权限。