码迷,mamicode.com
首页 > 其他好文 > 详细

CDH 6.0.1 集群搭建 「Process」

时间:2018-11-12 11:26:46      阅读:292      评论:0      收藏:0      [点我收藏+]

标签:nta   www   iptable   mct   wal   zed   div   clock   redhat   

这次搭建我使用的机器 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

CDH 6.0.1 集群搭建 「Process」

标签:nta   www   iptable   mct   wal   zed   div   clock   redhat   

原文地址:https://www.cnblogs.com/piperck/p/9944469.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!