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

时间:2014-12-03 14:22:03

标签: ubuntu hadoop installation

我在启动我的Hadoop集群时遇到此错误,而我的名字没有启动。以下是日志中的错误: ................... ................... org.apache.hadoop.hdfs.server.common.InconsistentFSStateException:Directory / home / ubuntu / hadoop / file:/ home / ubuntu / hadoop / hdfs / name处于不一致状态:存储目录不存在或不可访问;

错误路径/ home / ubuntu / hadoop / file:/ home / ubuntu / hadoop / hdfs / name似乎不正确。 它应该只是文件:/ home / ubuntu / hadoop / hdfs / name。

有人知道这条路走到哪里了吗?

所附? -

1 个答案:

答案 0 :(得分:0)

检查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>

我怀疑你有一个文件://某个地方。删除它,它将使用正确的路径设置。