首页 > 其他 > 详细

hadoop安装配置

时间:2019-09-14 13:29:25      阅读:60      评论:0      收藏:0      [点我收藏+]

  

 

core-site.xml  :  指定HDFS中Name的地址

<property>
    <name>fs.defaultFS</name>
    <value>hdfs://hadoop.master:9000</value>
</property>
<property>
    <name>hadoop.tmp.dir</name>
    <value>file:/usr/local/hadoop/tmp</value>
    <description>A base for other temporary directories</description>
</property>

 hdfs-site.xml :指定 HDFS 副本的数量

<property>
    <name>dfs.namenode.name.dir</name>
    <value>file:/usr/local/hadoop/hdfs/name</value>
 </property>
  <property>
     <name>dfs.datanode.data.dir</name>
      <value>file:/usr/local/hadoop/hdfs/data</value>
  </property>
  <property>
     <name>dfs.replication</name>
     <value>3</value>
  </property>
  <property>
     <name>dfs.namenode.secondary.http-address</name>
     <value>hadoop.slave01:50090</value>
  </property>  

yarn.site

<configuration>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
<property>
<name>yarn.resourcemanager.hostname</name>
<value>hadoop.slave02</value>
</property>
</configuration>

  

marp.site

<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
<property>
  <name>mapreduce.jobhistory.address</name>
  <value>hadoop.slave01:10020</value>
 </property>
<property>
  <name>mapreduce.jobhistory.webapp.address</name>
   <value>hadoop.slave01:19888</value>
</property>
</configuration>

  

  

 

hadoop安装配置

原文:https://www.cnblogs.com/Jomini/p/11374436.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!