我在ubuntu上安装了hadoop,但在sbin文件夹中运行./start-all.sh脚本时,datanode和namenode没有启动。配置文件中有以下设置:
core-site.xml文件
<configuration>
<property>
<name>dfs.default.FS</name>
<value>hdfs://localhost:50071</value>
</property>
<property>
<name>dhadoop.tmp.dir</name>
<value>usr/local/hadoop</value>
</property>
</configuration>
hdfs-site.xml文件
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>
mapred-site.xml文件
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>
yarn-site.xml文件
<configuration>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce-shuffle</value>
</property>
<property>
<name>yarn.nodemanager.aux-services.shuffle.class</name>
<value>org.apache.hadoop.ShuffleHandler</value>
</property>
</configuration>
您能帮我在xml文件中添加其他信息吗?我不知道这里怎么了?
暂无答案!
目前还没有任何答案,快来回答吧!