我已经在ubuntu16.04上配置了hadoop2.7.3并运行全部(字数统计和其他mapReduce运行全部)。重启pc后,我启动了start-dfs,但namenode没有启动。其他指南说删除临时目录,但我没有。
这些是我的文件:
core-site.xml
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>hdfs-site.xml
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>发布于 2017-04-04 21:08:17
Step 1: Create the folders like below:
-- sudo mkdir /dfs
-- sudo chown username:username /dfs/*
-- sudo chmod 755 /dfs/
-- cd /dfs
If the machine is name node then:
-- mkdir nn
if data node:
-- mkdir data
Step 2:
add below properties in hdfs-site.xml
<configuration>
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>
<configuration>
<property>
<name>dfs.namenode.name.dir</name>
<value>/dfs/nn</value>
</property>
</configuration>
<configuration>
<property>
<name>dfs.datanode.data.dir</name>
<value>/dfs/data</value>
</property>
</configuration>
</configuration>
step 3:
format the namenode: hadoop namenode -format
step 4:
start all services https://stackoverflow.com/questions/43207673
复制相似问题