1.关闭防火墙
[root@localhost q]# systemctl stop firewalld
2.关闭自启动防火墙
3.配置ip vi /etc/sysconfig/network-scripts/ifcfg-ens33
4.重启网卡
5.修改 etc/hosts
6.配置ssh免密 ssh-keyget -t rsa
7.创建公钥cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
8.测试免密ssh master
9.解压hadoop和jdk安装包
(1)jdk解压: tar zxvf jdk-8u151-linux-x64.tar.gz -C /usr/local/src/
(2)hadoop解压:tar zxvf hadoop-2.6.5.tar.gz -C /usr/local/src/
10.配置环境变量vi /etc/profile
11.使环境生效:source /etc/profile
12.进入hadoop/etc/hadoop 修改文件配置
(1).vi core-site.xml
(2). vi hdfs-site.xml
(3)vi mapred-site.xml
(4)vi yarn-site.xml
(5)vi hadoop-env.sh
(6) vi yarn-env.sh
11.格式化hadoop
12.启动集群
start-all.sh
13.jps查看进程