1. 程式人生 > >CDH 6.0.1 叢集搭建 「Process」

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