4.修改 core-site.xml 文件
vim core-site.xml
fs.defaultFS hdfs://hadoop:8020 hadoop.tmp.dir /opt/server/hadoop/data5.修改 mapred-site.xml 文件
vim mapred-site.xml
mapreduce.framework.name yarn6.修改 hdfs-site.xml 文件
vim hdfs-site.xml
dfs.replication 3 dfs.namenode.secondary.http-address hadoop2:500907.修改 yarn-site.xml 文件
vim yarn-site.xml
yarn.resourcemanager.hostname hadoop yarn.nodemanager.aux-services mapreduce_shuffle8.修改 workers 文件
vim workers
hadoop
hadoop2
hadoop3
三、给hadoop2、hadoop3分发文件
1.到存放hadoop的文件夹下
cd /opt/server/