【发布时间】:2016-02-08 20:38:21
【问题描述】:
我得到了错误
Cannot create directory /home/hadoop/hadoopinfra/hdfs/namenode/current
尝试在我的本地 Mac 上安装 hadoop 时。
这可能是什么原因?仅供参考,我将我的 xml 文件放在下面:
mapred-site.xml:
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>
hdfs-site.xml:
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.name.dir</name>
<value>file:///home/hadoop/hadoopinfra/hdfs/namenode </value>
</property>
<property>
<name>dfs.data.dir</name>
<value>file:///home/hadoop/hadoopinfra/hdfs/datanode </value>
</property>
</configuration>
核心站点.xml:
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/usr/local/Cellar/hadoop/hdfs/tmp</value>
<description>A base for other temporary directories.</description>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
我认为我的问题在于我的 hdfs-site.xml 文件,但我不确定如何查明/更改它。
我正在使用this教程,文件路径中的“hadoop”替换为我的用户名。
【问题讨论】:
-
检查目录权限