CDH 6.0.1 集群搭建 「Process」

这次搭建我使用的机器 os 是 Centos7.4 RH 系的下面以流的方式纪录搭建过程以及注意事项

Step1:

配置域名相关,因为只有三台机器组集群,所以直接使用了 hosts 的方法:

修改主机名
hostnamectl set-hostname ryze-1.bigdata.com

然后在 /etc/hosts 文件中配置相关机器的域名 和 域名简写
x.x.x.x ryze-1.bigdata.com ryze-1
x.x.x.x zed-1.bigdata.com  zed-1
x.x.x.x zed-2.bigdata.com  zed-2
并且测试其能互通

配置 /etc/sysconfig/network
HOSTNAME=foo-1.example.com

验证配置
uanem -a 需要和 hostname 得到一致的域名

Step2:

关闭防火墙

# 防火墙关闭
iptables-save > /root/firewall.rules
sudo chkconfig iptables off
sudo service iptables stop

Step3:

启动 NTP 服务

yum install ntp

设置一个同步时间服务器
/etc/ntp.conf

# 笔者使用的 aliyun 这里应该是可以跳过的,我检查了安装 ntp 之后,里面配置了非常多 aliyun 的相关节点。
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org

# 开启 NTP 服务
sudo systemctl start ntpd

# 配置 NTP 服务自启动
sudo systemctl enable ntpd

# 向某个服务器同步时间
ntpdate -u <ntp_server>

# 同步系统时间
hwclock --systohc

所有机器完成上面配置之后,我们开始进入安装的步骤。

Step1:

首先 Cloudera 为用户已经准备好了专用的程序仓库,我们需要将其下载下来

wget https://archive.cloudera.com/cm6/6.0.1/redhat7/yum/cloudera-manager.repo -P /etc/yum.repos.d/

# Import the repository signing GPG key
sudo rpm --import https://archive.cloudera.com/cm6/6.0.0/redhat7/yum/RPM-GPG-KEY-cloudera

Step2:

 TO BE CONTINUE

Reference:

https://www.cloudera.com/documentation/enterprise/6/6.0/topics/installation_reqts.html  Before You Install

https://www.cloudera.com/documentation/enterprise/6/6.0/topics/install_cm_cdh.html  Installing Cloudera Manager, CDH, and Managed Services

猜你喜欢

转载自www.cnblogs.com/piperck/p/9944469.html