6、所有節點關閉python的安全認證
修改所有主機配置
vim /etc/python/cert-verification.cfg
cation.cfgverify=disable
7、安裝ntp服務
72/73/74安裝ntp服務并同步時間
yum -y install ntp; ntpdate time.buptnet.edu.cn
systemctl start ntpd
systemctl enable ntpd
8、安裝ambari
8.1、安裝ambari.repo本地源
下載ambari.repo文件并存至/etc/yum.repos.d/ambari.repo中,因為yum命令安裝服務時,默認從/etc/yum.repos.d/目錄下尋找 .repo結尾的文件源
wget http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.6.2.0/ambari.repo -O /etc/yum.repos.d/ambari.repo
?
?
8.2、修改本地源
修改/etc/yum.repos.d/ambari.repo
改成如下配置,紅框圈起來的部分表示ambari在apache服務器的目錄
若下載本地源的時候報錯403 forbiden,則手動構建源文件
#如果下載不成功,則新建文件
/etc/yum.repos.d/ambari.repo
?
#將如下內容cp里面
#VERSION_NUMBER=2.7.4.0-118
[Updates-ambari-2.7.4.0]
name=ambari-2.7.4.0 - Updates
baseurl=http://192.168.101.214/ambari/centos7/2.7.4.0-118/
gpgcheck=1
gpgkey=http://192.168.101.214/ambari/centos7/2.7.4.0-118/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1