目录
1.新建虚拟机................................................................................................................................................2
2.安装虚拟机系统 ......................................................................................................................................6
3.安装相关插件【vim,ssh】 ...........................................................................................................12
4.创建 hadoop 用户并使用 Xshell 远程登录 ..............................................................................12
5.传输相关文件【java,hadoop】..................................................................................................17
6.配置环境变量 ........................................................................................................................................18
7.修改主机名和域名映射.....................................................................................................................19
8.克隆三台主机 ........................................................................................................................................20
9.三台虚拟主机添加 ssh 免密登录..................................................................................................21
10 .修改 hadoop 配置文件(主机 nxf135)...............................................................................22
1.核心配置文件 core-site.xml...................................................................................................23
2.hdfs-site.xml .................................................................................................................................23
3. yarn-site.xml.............................................................................................................................24
4.MapReduce 配置文件:mapred-site.xml........................................................................24
5.修改集群的节点配置文件 workers....................................................................................25
11.添加一个发送文件的脚本 xsync ................................................................................................25
12.发送主机 nxf135 的 hadoop 配置文件到所有的主机节点上........................................27
13.启动 hadoop 相关服务 ...................................................................................................................27
1.格式化文件服务器(主机 nxf135)........................................................................................27
2.分别启动不同服务器的任务即可........................................................................................28
2.1 主机 nxf135 启动 dfs..................................................................................................28
2.2 主机 nxf136 上启动 yarn..........................................................................................29
14. 关闭 hadoop 相关服务 ..................................................................................................................31