1、core-site.xml
< configuration>
< property>
< name> fs.defaultFS</ name>
< value> hdfs://hadoop102:8020</ value>
</ property>
< property>
< name> hadoop.tmp.dir</ name>
< value> /opt/module/hadoop-3.1.3/data</ value>
</ property>
</ configuration>
2、hdfs-site.xml
< property>
< name> dfs.namenode.http-address</ name>
< value> hadoop102:9870</ value>
</ property>
< property>
< name> dfs.namenode.secondary.http-address</ name>
< value> hadoop104:9868</ value>
</ property>
3、yarn-site.xml
< property>
< name> yarn.nodemanager.aux-services</ name>
< value> mapreduce_shuffle</ value>
</ property>
< property>
< name> yarn.resourcemanager.hostname</ name>
< value> hadoop103</ value>
</ property>
< property>
< name> yarn.nodemanager.env-whitelist</ name>
< value> JAVA_HOME,HADOOP_COMMON_HOME,HADOOP_HDFS_HOME,HADOOP_CONF_DIR,CLASSPATH_PREPEND_DISTCACHE,HADOOP_YARN_HOME,HADOOP_MAPRED_HOME</ value>
</ property>
4、yarn-site.xml
< property>
< name> mapreduce.framework.name</ name>
< value> yarn</ value>
</ property>
< property>
< name> mapreduce.jobhistory.address</ name>
< value> ysy101:10020</ value>
</ property>
< property> < name> mapreduce.jobhistory.webapp.address</ name>
< value> ysy101:19888</ value>