[hdp2.4系列] 機器準備
阿新 • • 發佈:2018-12-30
分散式hdp2.4叢集相關的機器情況列表
一、編輯hosts檔案,並傳到每臺機器上。
[[email protected] ]# vi /etc/hosts
192.168.0.130 master.bigdata.com master
192.168.0.131 slave1.bigdata.com slave1
192.168.0.132 slave2.bigdata.com slave2
192.168.0.133 slave3.bigdata.com slave3
192.168.0.105 yum.bigdata.com yum
scp /etc/hosts [email protected]:/etc/hosts
scp /etc/hosts [email protected]:/etc/hosts
scp /etc/hosts [email protected]:/etc/hosts
scp /etc/hosts [email protected]:/etc/hosts
二、配置yum 源
配置私有yum源。在 /etc/yum.repos.d/目錄下新建檔案ambari_local.repo檔案,內容如下。
機器名稱 | ip | 域名 | 用途 |
yum | 192.168.0.105 | yum.bigdata.com | 本源yum源伺服器 |
master | 192.168.0.130 | master.bigdata.com | master節點 |
slave1 | 192.168.0.131 | slave1.bigdata.com | slave1 |
slave2 | 192.168.0.132 | slave2.bigdata.com | slave2 |
slave3 | 192.168.0.133 | slave3.bigdata.com | slave3 |
[ambari-local]
name=CentOS-$releasever - Media
baseurl=http://master.bigdata.com
gpgcheck=0
enabled=1
並上傳到每一臺機器上。
scp /etc/yum.repos.d/ambari_local.repo [email protected] :/etc/yum.repos.d/
scp /etc/yum.repos.d/ambari_local.repo [email protected]:/etc/yum.repos.d/
scp /etc/yum.repos.d/ambari_local.repo [email protected]:/etc/yum.repos.d/
scp /etc/yum.repos.d/ambari_local.repo [email protected]:/etc/yum.repos.d/