Five points: Arrangement sentence analysis:
hadoop01 NameNode, DataNode, NodeManager
hadoop02 ResourceManager
hadoop03 DataNode NodeManager, SecondaryNameNode
hadoop04 DataNode NodeManager
hadoop05 DataNode NodeManager
Configuration file;
namenode : (core-site.xml, which one to match here, which one to start namenode) hadoop01
ResourceManager (yarn-site.xml, which one to match here, which one to start ResourceManager) hadoop02
DataNode, NodeManager to decide In: slaves file 01, 03, 04, 05
NameNode :
core-site.xml configures hadoop01, and the value of dfs.http.address under hdfs-site.xml configures hadoop01
ResourceManager :
configure hadoop02 with value in yarn-site.xml
SecondaryNameNode :
The value of dfs.secondary.http.address under hdfs-site.xml configure hadoop03
and create a master file, write hadoop03 in it
DataNode、NodeManager:
slaves文件中写:hadoop01,hadoop03 ,hadoop04 ,hadoop05
Password -free sending:
under hadoop01, send to hadoop01, hadoop03, hadoop04, hadoop05 (note: namenode starts datanode)
under hadoop01, send to hadoop01, hadoop03, hadoop04, hadoop05 (note: resourcemanager starts datamanager)