亚洲日韩国产av无码无码精品,久久AⅤ无码精品色午麻豆 ,成人A片产无码免费视频奶头红杏,国产成人亚洲综合A∨

準備環(huán)境

192.168.80.10 Master Master.Hadoop
192.168.80.11 Slave1 Slave1.Hadoop
192.168.80.12 Slave2 Slave2.Hadoop
三臺機器均為Centos_x64_6.5 Master主節(jié)點配置4G內存 另兩臺Slave配置為2G內存
由于通過在線安裝的方式未能安裝成功,轉換思路將在本地建yum源的方式來安裝,個人覺得這種方式應該是更適合自動化部署的一種方法,畢竟在線安裝幾個G的內容,出問題的概率還是比較高的。

YUM本地源配置

1.從官方下載安裝文件:

ambari-1.7.0-centos6.tar.gz
HDP-2.2.0.0-centos6-rpm.tar.gz
HDP-UTILS-1.1.0.20-centos6.tar.gz

 

2.Apacher http的安裝

比較簡單,如果沒裝的話直接yum安裝下即可,在此不作安裝說明了。

3.解壓安裝文件到ambari1.7目錄

mkdir /var/www.html/ambari1.7用tar -zxvf 將三個 tar文件解壓,目錄結構與內容如下:

通過ambari來搭建hadoop集群

 

4.安裝createrepo

?yum install createrepo

通過ambari來搭建hadoop集群

5.創(chuàng)建本地ambari.repo源

將/etc/yum.repos.d下的所有repo做備份,然后刪除,創(chuàng)建一個ambari.repo,此包的內容可以從官網
http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.7.0/ambari.repo?
下載后修改,寫入以下內容:
[ambari-1.x]
name=Ambari 1.x
baseurl=http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA
gpgcheck=1
gpgkey=http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=0
priority=1

[Updates-ambari-1.7.0]
name=ambari-1.7.0 – Updates
baseurl=http://master/ambari1.7/ambari/centos6/1.x/updates/1.7.0/
gpgcheck=1
gpgkey=http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

通過ambari來搭建hadoop集群


6.確認yum源是否配置正確

清除緩存
yum clean all
檢查源列表
yum repolist

通過ambari來搭建hadoop集群

通過本地源安裝ambari

1.安裝ambari-server

yum install ambari-server

2.配置ambari-server

ambari-server setup

通過ambari來搭建hadoop集群

作為測試的環(huán)境,我一般都有的默認的配置,生產環(huán)境中根據實際情況配置,如數據庫可選擇的比較多,前提得安裝并配置完成。


3.啟動ambari-server

ambari-server start

 


4.檢查ambari-server安裝是否成功

在瀏覽器中輸入http://Your Server IP:8080

通過ambari來搭建hadoop集群

至此,通過本地源安裝ambari-server已經安裝成功,接下來我們通過ambari-server 控制臺來安裝Hadoop的集群。

南京迪塔維數據技術有限公司

上一篇:

下一篇:

相關新聞