1)namenode:
core-site.xml文件中决定:
<property>
<name>fs.defaultFS</name>
<value>hdfs://chavin.king:9000</value>
</property>
2)secondarynamenode:
hdfs-site.xml文件中决定:
<property>
<name>dfs.namenode.secondary.http-address</name>
<value>db01:50090</value>
</property>
3)resourcemanager决定:
yarn-site.xml文件中:
<property>
<name>yarn.resourcemanager.hostname</name>
<value>db01</value>
</property>
4)datanode和nodemanager决定:
slaves文件中通过每行主机名或ip地址确定
5)jobhistoryserver决定:
mapred-site.xml文件中:
<property>
<name>mapreduce.jobhistory.address</name>
<value>db01:10020</value>
</property>
<property>
<name>mapreduce.jobhistory.webapp.address</name>
<value>db01:19888</value>
</property>