我得到错误
Cannot create directory /home/hadoop/hadoopinfra/hdfs/namenode/current
Run Code Online (Sandbox Code Playgroud)
尝试在本地Mac上安装hadoop时。
这可能是什么原因?仅供参考,我将xml文件放在下面:
mapred-site.xml:
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>
Run Code Online (Sandbox Code Playgroud)
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>
Run Code Online (Sandbox Code Playgroud)
core-site.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>
Run Code Online (Sandbox Code Playgroud)
我认为我的问题出在我的hdfs-site.xml文件中,但是我不确定如何查明/更改它。
我正在使用本教程,文件路径中的“ hadoop”已替换为我的用户名。