必须具有核心站点hdfs-site mapred-site和yarn-site.xml的属性 [英] must have properties for core-site hdfs-site mapred-site and yarn-site.xml

查看:147
本文介绍了必须具有核心站点hdfs-site mapred-site和yarn-site.xml的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以让我知道必须具有Core-site.xml,hdfs-site.xml,mapred-site.xml和yarn-site.xml的属性,但没有这些属性,hadoop无法启动?

解决方案

以下设置适用于独立和伪节点设置的Hadoop 2.xx。

核心-site.xml

 < configuration> 
<属性>
<名称> fs.default.name< /名称>
< value> hdfs:// localhost:9000< / value>
< / property>
< / configuration>

hdfs-site.xml

 <结构> 
<属性>
< name> dfs.replication< / name>
<值> 1< /值>
< / property>

<属性>
<名称> dfs.name.dir< /名称>
< value> file:/// home / hadoop / hadoopdata / hdfs / namenode< / value>
< / property>

<属性>
<名称> dfs.data.dir< /名称>
<值> file:/// home / hadoop / hadoopdata / hdfs / datanode< / value>
< / property>
< / configuration>

mapred-site.xml

 <结构> 
<属性>
< name> mapreduce.framework.name< / name>
<值>纱线< /值>
< / property>
< / configuration>

yarn-site.xml

 <结构> 
<属性>
< name> yarn.nodemanager.aux-services< / name>
< value> mapreduce_shuffle< /值>
< / property>
< / configuration>

也可以参考apache hadoop文档单一节点设置


Can anyone please let me know the must have properties for Core-site.xml, hdfs-site.xml, mapred-site.xml and yarn-site.xml without which hadoop can not start?

解决方案

Below settings is for Hadoop 2.x.x for Standalone and Pseudo node setup.

core-site.xml

<configuration>
<property>
  <name>fs.default.name</name>
    <value>hdfs://localhost:9000</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/hadoopdata/hdfs/namenode</value>
</property>

<property>
  <name>dfs.data.dir</name>
    <value>file:///home/hadoop/hadoopdata/hdfs/datanode</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>
</configuration>

also refer apache hadoop documentation for single node setup

这篇关于必须具有核心站点hdfs-site mapred-site和yarn-site.xml的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆