失效链接处理 |
Hadoop完全分布式集群安装及配置 PDF 下载
本站整理下载:
相关截图:
主要内容:
三台虚拟机centos7:
Master(hadoop) :192.168.238.148
slave01(hadoop01):192.168.238.143
slave02(hadoop02):192.168.238.149
本实验所使用的两个文件包:
hadoop-2.10.1.tar.gz
jdk-8u171-linux-x64.tar.gz
1.修改主机名
Master
#hostnamectl set-hostname master
#bash
slave01
#hostnamectl set-hostname slave01
#bash
slave02
#hostnamectl set-hostname slave02
#bash
2.修改/etc/hosts文件,配置主机域名映射
Master
#vim /etc/hosts
192.168.238.148 master
192.168.238.143 slave01
192.168.238.149 slave02
slave01
[root@slave01~]# vim /etc/hosts
192.168.238.148 master
192.168.238.143 slave01
192.168.238.149 slave02
slave02
[root@slave02~]# vim /etc/hosts
192.168.238.148 master
192.168.238.143 slave01
192.168..149 slave02
3.关闭防火墙(三台同时关闭)
[root@master~]# systemctl stop firewalld
[root@slave01~]# systemctl stop firewalld
[root@slave02~]# systemctl stop firewalld
安装并配置NTP服务,用于时间同步
Master
[root@master-yly ~]# yum install -y ntp
# 修改配置文件,在末尾添加如下两条配置:
[root@master-yly ~]# vim /etc/ntp.conf
server 127.127.1.0
fudge 127.127.1.0 startum 10
# 启动服务并添加到开机自启动:
[root@master-yly ~]# systemctl start ntpd
[root@master-yly ~]# systemctl enable ntpd
slave01
[root@slave01~]#yum install -y ntpdate
[root@slave01~]#ntpdate master-yly
slave02
[root@slave02~]#yum install -y ntpdate
[root@slave02~]#ntpdate master-yly
配置免密码登录(只需要配置从主节点到从节点即可)
[root@master~]#ssh-keygen
[root@master~]#ssh-copy-id master
[root@master~]#ssh-copy-id slave02
[root@master~]#ssh-copy-id slave01
安装和配置jdk
|