最近要為第三方搭建一套大數據平臺,中間先進行了虛擬機版本,測試通過后,進行了物理機版本的生產環境,網上關于ambari 的文章并不多,但好在ambari 官方文檔質量略高,社區比較活躍,便整理該系列的文檔,將埋掉的坑拋出來,幫助小伙伴們更加快速的搭建自己的hadoop 平臺。
分三個部分:
1. 為什么選擇ambari 來搭建
說到ambari, 主要的對手cloudrea manager ,大家比較熟悉,至于各自長短,優勢劣汰,大家自己斟酌選擇啦。
Cloudera Manager is different. It's a web interface formanaging a Cloudera Cluster. It lets you install and update software on thecluster, monitor resource usage, restart services, deploy (copy to all servers)configuration files etc. Cloudera Manager is for admins.
The analog to Cloudera Manager, from the open sourcecommunity, would be Apache "Ambari," which provides similarfunctionality. The Hortonworks Data Platform (HDP) can be deployed and managedusing Ambari.
Both Cloudera Manager and Ambari run through a webinterface.
2.整個構建過程的總覽步驟
##################################################################################################
第一步 客戶機配置:
檢查 centos 版本,selinux ,firewalld ,hosts 記錄,jdk1.8
檢查時區和時間是否統一
yum install ntp
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
配置root ssh 免秘鑰登陸
配置jdk1.8.025
配置hosts 文件
##################################################################################################
第二步:本地倉庫搭建
localRepository-11-32
##################################################################################################
第三步:配置ambari-server ambari-11-10
生成ssh 秘鑰
配置ssh 無秘鑰登陸客戶機
安裝ambari-server
配置ambari-server
啟動ambari-server
##################################################################################################
第四步:web 登陸 ambari并安裝組件
配置ambari-server 選項
選擇并啟動相應組件
##################################################################################################
第五步: 檢查并測試 服務
web 檢查組件服務是否正常啟動
shell 端檢查服務是否健康
hdfs fsck / -files -blocks -locations
java api/ python 檢查服務是否正常
##################################################################################################
第六步:文檔編寫
截圖
配文字說明
總結
##################################################################################################
3.實例截圖與測試
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。