3.1 进入hadoop/etc/hadoop.......................................................................................11
3.2 修改hadoop-env.sh文件.......................................................................................11
3.3 配置core-site.xml...............................................................................................11
3.4 配置hdfs-site.xml...............................................................................................11
3.5 配置mapred-site.xml...........................................................................................11
3.6 配置yarn-site.xml...............................................................................................11
3.7 配置slaves文件.....................................................................................................12
4. 创建目录 ..........................................................................................................................12
5. 分发节点 ..........................................................................................................................12
6. 修改目录所有者和所有者组...........................................................................................12
7. 生效环境变量...................................................................................................................12
五. Hadoop HA 启动...................................................................................................................12
1. 启动journalnode守护进程.............................................................................................12
2. 初始化namenode...............................................................................................................12
3. 注册 ZNode ......................................................................................................................13
4. 启动hdfs ..........................................................................................................................13
5. 启动yarn ..........................................................................................................................13
6. 同步master数据...............................................................................................................14
8. 启动MapReduce任务历史服务器.....................................................................................14
9. 查看端口和进程...............................................................................................................14