标签:mapreduce 修改 6.4 nod mon div sts 路径 hostname
Hadoop集群搭建(完全分布式)
HADOOP_HOME=/home/hadoop/apps/hadoop-2.6.4 JAVA_HOME=/opt/software/java/jdk1.7.0_76 JRE_HOME=/opt/software/java/jdk1.7.0_76/jre CLASS_PATH=.:${JAVA_HOME}/lib:${JAVA_HOME}/lib #PATH=${JAVA_HOME}/bin:$PATH PATH=$PATH:${JAVA_HOME}/bin:${JRE_HOME}/bin:$HADOOP_HOME/bin:$HADOOP_HOME/sbin export HADOOP_HOME export JAVA_HOME export PATH
# The java implementation to use. export JAVA_HOME=/home/hadoop/apps/jdk1.7.0_51
<configuration> <property> <name>fs.defaultFS</name> <value>hdfs://ruixuan.com:9000</value> </property> <property> <name>hadoop.tmp.dir</name> <value>/home/HADOOP/apps/hadoop-2.6.1/tmp</value> </property>
</configuration>
这里设置了NameNode的地址,是在ruixuan.com这台主机上,设置hadoop的临时目录,自己指定。
<configuration>
<property>
<name>dfs.namenode.name.dir</name>
<value>/home/hadoop/data/name</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>/home/hadoop/data/data</value>
</property>
<property>
<name>dfs.replication</name>
<value>3</value>
</property>
</configuration>
replication的是副本数,意思是一个文件需要在HDFS分布式文件系统中保存几分,建议 DataNode的数量应大于等于replication。
<configuration> <property> <name>mapreduce.framework.name</name> <value>yarn</value><!--默认为local --> </property> </configuration>
<configuration> <!-- Site specific YARN configuration properties --> <property> <name>yarn.resourcemanager.hostname</name> <value>ruixuan.com</value> </property> <property> <name>yarn.nodemanager.aux-services</name> <value>mapreduce_shuffle</value> </property>
mini01
mini02
mini03
配置的是主机名
标签:mapreduce 修改 6.4 nod mon div sts 路径 hostname
原文地址:https://www.cnblogs.com/monco/p/9202964.html