一、jdk安装
1.准备工作
①.下载Hadoop-2.7.4和其对应的jdk版本
jdk-8u161:链接:https://pan.baidu.com/s/1Z1kDg_tgakA-Hx5VsakPQg 提取码:rel3
hadoop-2.7.4:链接:https://pan.baidu.com/s/1r5OwXFbuaByk45zADxfDNQ 提取码:nyt1
②.为系统设置静态IP
参考此文章:centos7如何设置静态IP_庸人自扰665的博客-优快云博客_centos7配置静态ip
③.修改 /etc/hosts 文件
[root@hadoop01 ~]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.51.129 hadoop01
192.168.51.130 hadoop02
192.168.51.131 hadoop03
④.实现三台主机互信
[root@hadoop01 ~]# yum install openssh-server(三台主机上均进行安装)
[root@hadoop01 ~]# ssh-keygen -t rsa(连续按四次回车键)
[root@hadoop01 ~]#