Hadoop 集群安装指南
By AnthonyChein
SRT OF SUST
目录
1. 简述安装 VMWare Workstation 10 ................................................................................ 1
安装流程: ....................................................................................................................... 1
2. 简述 VMWare10 安装 Ubuntu Kylin ................................................................................ 4
(1)新建虚拟机 ..................................................................................................................... 4
(2)虚拟机向导 ..................................................................................................................... 4
(3)简易安装信息 ................................................................................................................. 5
(4)命名虚拟机 ..................................................................................................................... 5
(5)指定虚拟机容量 ............................................................................................................. 6
(6)准备创建虚拟机 ............................................................................................................. 6
(7)安装虚拟机 ..................................................................................................................... 7
(8)安装完成登录系统 ......................................................................................................... 7
3. 简述 Ubuntu 的常用配置 ................................................................................................. 8
(1)更新镜像源 ..................................................................................................................... 8
(2)安装 vim 编辑器 ............................................................................................................ 9
(3)安装 vsftpd 服务器 ......................................................................................................... 9
(4)安装 ssh 服务器 ............................................................................................................ 10
(5)安装 samba 服务器 ...................................................................................................... 11
4. 克隆 HadoopSlave .......................................................................................................... 13
5. 配置主机名 ..................................................................................................................... 15
(1) HadoopMaster 节点 ................................................................................................ 15
(2) HadoopSlave 节点 .................................................................................................. 15
6.配置 hosts 列表 ......................................................................................................................... 17
7.安装 jdk...................................................................................................................................... 20
8.免密钥登录配置 ......................................................................................................................... 21
9.Hadoop 配置部署 ........................................................................................................................ 24
(1) 添加 Hadoop 安装路径 .......................................................................................... 24
(2) 配置环境变量 hadoop-env.sh ................................................................................. 25
(3) 配置环境变量 yarn-env.sh ..................................................................................... 25
(4) 配置核心组件 core-site.xml ....................................................................................... 26
(5) 配置文件系统 hdfs-site.xml ....................................................................................... 27
(6) 配置文件系统 yarn-site.xml ....................................................................................... 27
(7) 配置计算框架 mapred-site.xml .................................................................................. 29
(8) 在 master 节点配置 slaves 文件 ................................................................................ 30
(9) 复制到从节点 ............................................................................................................. 30
(10)在 slave 上部署 Hadoop ............................................................................................. 31
(11)在 master 和 slave 上配置 Java 和 Hadoop 启动的系统环境变量 ........................... 31