配置完全分布式(${hadoop_home}/etc/hadoop/) --->full
2018-12-21 09:41:47
[core-site.xml]
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://s250/</value>
</property>
</configuration>
此处添加主控端(namenode节点)的IP或者主机名
[hdfs-site.xml]
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>dfs.replication</name>
<value>3</value>
</property>
</configuration>
此处添加有多少子客户端(datanode节点),写数量即可,不包含namenode节点
[mapred-site.xml] 不变
[yarn-site.xml]
<?xml version="1.0"?>
<configuration>
<property>
<name>yarn.resourcemanager.hostname</name>
<value>s250</value>
</property>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
</configuration>
此处添加主控端主机名字(namenode节点的主机名)