失效链接处理 |
Hadoop全分布模式安装手册 PDF 下载
本站整理下载:
提取码:fh2g
相关截图:
主要内容:
实验开始前的准备:
三台centos7: master-yly:192.168.91.134(IP地址)
slave01-yly:192.168.91.135
slave02-yly:192.168.91.136
本实验所使用的两个文件包:
hadoop-2.7.6.tar.gz
jdk-8u171-linux-x64.tar.gz
可以上传文件的软件(Mac系统可直接用终端进行文件传输,window系统选择合适软件即可)
1 .修改主机名
master-yly:
[root@localhost ~]# hostnamectl set-hostname master-yly
[root@localhost ~]# bash
slave01-yly:
[root@localhost ~]# hostnamectl set-hostname slave01-yly
[root@localhost ~]# bash
slave02-yly:
[root@localhost ~]# hostnamectl set-hostname slave02-yly
[root@localhost ~]# bash
2修改/etc/hosts文件,配置主机域名映射
master-yly:
[root@master-yly ~]# vim /etc/hosts
192.168.91.134 master-yly
192.168.91.135 slave01-yly
192.168.91.136 slave02-yly
slave01-yly:
[root@slave01-yly ~]# vim /etc/hosts
192.168.91.134 master-yly
192.168.91.135 slave01-yly
192.168.91.136 slave02-yly
slave02-yly:
[root@slave02-yly ~]# vim /etc/hosts
192.168.91.134 master-yly
192.168.91.135 slave01-yly
192.168.91.136 slave02-yly
3 关闭防火墙(三台同时关闭)
[root@master-yly ~]# systemctl stop firewalld
[root@slave01-yly ~]# systemctl stop firewalld
[root@slave02-yly ~]# systemctl stop firewalld
4 安装并配置NTP服务,用于时间同步
master-yly:
[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
|