不一致的文件夹:hadoop中的存储目录

uurity8g  于 2021-05-30  发布在  Hadoop
关注(0)|答案(1)|浏览(266)

我在启动hadoop集群时遇到这个错误,我的namendoe没有启动。以下是日志中的错误:。。。。。。。。。。。。。。。。。。。org.apache.hadoop.hdfs.server.common.inconsistentfsstateexception:目录/home/ubuntu/hadoop/file:/home/ubuntu/hadoop/hdfs/name处于不一致状态:存储目录不存在或不可访问;
错误路径/home/ubuntu/hadoop/file:/home/ubuntu/hadoop/hdfs/name似乎不正确。它只能是file:/home/ubuntu/hadoop/hdfs/name。
有人知道这条路是从哪里走的吗?
附加?–

e3bfsja2

e3bfsja21#

检查hdfs-site.xml和core-site.xml。相关属性包括:

<configuration>

<property>
  <name>dfs.name.dir</name>
  <value>/var/lib/hadoop/dfs/name</value>
  <description>Determines where on the local filesystem the DFS name node should store the name     table(fsimage). If this is a comma-delimited list of directories then the name table is replicated in all of the directories, for redundancy.
The default is ${hadoop.tmp.dir}/dfs/name.
  </description>
</property>

<property>
  <name>dfs.data.dir</name>
  <value>/var/lib/hadoop/dfs/data</value>
  <description>Determines where on the local filesystem an DFS data node should store its blocks. If this is a comma-delimited list of directories, then data will be stored in all named directories, typically on different devices. Directories that do not exist are ignored.
  The default is ${hadoop.tmp.dir}/dfs/data.
  </description>
</property>

</configuration>

我怀疑你在什么地方有档案。删除它,它将使用正确的路径设置。

相关问题