淺嘗HDP2.6

環(huán)境準(zhǔn)備(單節(jié)點(diǎn)偽分布)

192.168.111.135    master01

安裝包下載

RedHat 6 / CentOS 6 / Oracle Linux 6 -- Ambari-2.5.0
下載地址:http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.5.0.3/ambari-2.5.0.3-centos6.tar.gz
RedHat 6 / CentOS 6 / Oracle Linux 6 -- HDP-2.6.0.3 -- HDP
下載地址:http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.6.0.3/HDP-2.6.0.3-centos6-rpm.tar.gz
RedHat 6 / CentOS 6 / Oracle Linux 6 -- HDP-2.6.0.3 -- HDP-UTILS
下載地址:http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos6/HDP-UTILS-1.1.0.21-centos6.tar.gz

配置http服務(wù)

  1. 查看http服務(wù)documentroot目錄
    默認(rèn)為:/var/www/html
  2. 上傳并解壓安裝包
    將下載的Ambari、HDP、HDP-UTILS安裝包上傳至規(guī)劃的http服務(wù)器documentroot(默認(rèn):/var/www/html)目錄下
    在documentroot(默認(rèn):/var/www/html)目錄下創(chuàng)建HDP-UTILS目錄,并將HDP-UTILS-1.1.0.21-centos6.tar.gz移動至剛創(chuàng)建的HDP-UTILS目錄下,解壓:tar -zxvf HDP-UTILS-1.1.0.21-centos6.tar.gz
    在documentroot(默認(rèn):/var/www/html)目錄下解壓Ambari、HDP安裝包:tar -zxvf ambari-2.5.0.3-centos6.tar.gz && tar -zxvf HDP-2.6.0.3-centos6-rpm.tar.gz
  3. 啟動httpd服務(wù)
service httpd restart
  1. 驗(yàn)證http服務(wù)
    在瀏覽器中訪問如下地址:
    http://192.168.111.135/ambari/centos6
    http://192.168.111.135/HDP/centos6
    http://192.168.111.135/HDP-UTILS
    可獲取相應(yīng)目錄及文件即證明http服務(wù)部署成功

配置本地源

在所有節(jié)點(diǎn)配置如下本地源文件
/etc/yum.repos.d/c6.repo

[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/RHEL_6.4\ x86_64\ Disc\ 1
gpgcheck=1
enabled=1

/etc/yum.repos.d/ambari.repo

#VERSION_NUMBER=2.5.0.3-7
[ambari-2.5.0.3]
name=ambari Version - ambari-2.5.0.3
baseurl=http://192.168.111.135/ambari/centos6
gpgcheck=1
gpgkey=http://192.168.111.135/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

/etc/yum.repos.d/HDP.repo

#VERSION_NUMBER=2.6.0.3-8
[HDP-2.6.0.3]
name=HDP Version - HDP-2.6.0.3
baseurl=http://192.168.111.135/HDP/centos6
gpgcheck=1
gpgkey=http://192.168.111.135/HDP/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

/etc/yum.repos.d/HDP-UTILS.repo

[HDP-UTILS-1.1.0.21]
name=HDP-UTILS Version - HDP-UTILS-1.1.0.21
baseurl=http://192.168.111.135/HDP-UTILS
gpgcheck=1
gpgkey=http://192.168.111.135/HDP-UTILS/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

配置網(wǎng)絡(luò)源(用于依賴包安裝)
/etc/yum.repos.d/163.repo

[base]
name=CentOS-6 - Base - 163.com
baseurl=http://mirrors.163.com/centos/6/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-6 - Updates - 163.com
baseurl=http://mirrors.163.com/centos/6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-6 - Extras - 163.com
baseurl=http://mirrors.163.com/centos/6/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/6/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-6 - Contrib - 163.com
baseurl=http://mirrors.163.com/centos/6/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

檢查本地源
yum list telnet

[root@master01 yum.repos.d]# yum list telnet
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
HDP-UTILS-1.1.0.21                                                                                                                                                    | 2.9 kB     00:00     
HDP-UTILS-1.1.0.21/primary_db                                                                                                                                         |  36 kB     00:00     
ambari-2.5.0.3                                                                                                                                                        | 2.9 kB     00:00     
ambari-2.5.0.3/primary_db                                                                                                                                             | 8.5 kB     00:00     
c6-media                                                                                                                                                              | 3.9 kB     00:00 ... 
c6-media/primary_db                                                                                                                                                   | 3.1 MB     00:00 ... 
Available Packages
telnet.x86_64                                                                           1:0.17-47.el6_3.1                                                                            c6-media
[root@master01 yum.repos.d]#

yum list ambari-server

[root@master01 yum.repos.d]# yum list ambari-server
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Available Packages
ambari-server.x86_64                                                                         2.5.0.3-7                                                                         ambari-2.5.0.3
[root@master01 yum.repos.d]#

yum list hadoop


[root@master01 yum.repos.d]# yum list hadoop
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Available Packages
hadoop.noarch                                                                         2.7.3.2.6.0.3-8.el6                                                                         HDP-2.6.0.3
[root@master01 yum.repos.d]#

yum list hadoop-lzo

[root@master01 yum.repos.d]# yum list hadoop-lzo
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Available Packages
hadoop-lzo.x86_64                                                                         0.6.0-1                                                                          HDP-UTILS-1.1.0.21
[root@master01 yum.repos.d]# 

準(zhǔn)備Mysql數(shù)據(jù)庫

使用Redhat本地源安裝Mysql服務(wù):yum -y install mysql*
初始化Mysql服務(wù):/usr/bin/mysql_install_db --defaults-file=/etc/my.cnf --datadir=/var/lib/mysql
啟動mysql:service mysqld restart
設(shè)置root賬號密碼:/usr/bin/mysqladmin -S /var/lib/mysql/mysql.sock -u root password 'root'
登陸mysql開放遠(yuǎn)程訪問:

#mysql -uroot -proot
>GRANT ALL PRIVILEGES ON *.* TO 'root'@'master01' IDENTIFIED BY 'root' WITH GRANT OPTION;
>GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'root' WITH GRANT OPTION;
>FLUSH PRIVILEGES;

安裝Ambari

在規(guī)劃的Ambari-server服務(wù)器上按照提示安裝:

yum -y install ambari-server

設(shè)置Ambari Server

ambari-server setup

注意事項(xiàng):
jdk選擇1.8
數(shù)據(jù)庫選擇mysql
數(shù)據(jù)庫用戶名密碼root/root
Ambari元數(shù)據(jù)需手工導(dǎo)入mysql數(shù)據(jù)庫

啟動Ambari Server

ambari-server start

安裝HDP服務(wù)

成功啟動Ambari Server之后,進(jìn)入頁面根據(jù)提示安裝服務(wù)組件
服務(wù)組件全部安裝完成之后,會自動啟動所有組件,可在Ambari頁面查看相關(guān)監(jiān)控信息
注意:安裝過程中如果出現(xiàn)缺少依賴包的錯誤,可根據(jù)日志提示,通過Redhat本地源或從網(wǎng)絡(luò)下載對應(yīng)rpm包進(jìn)行安裝

服務(wù)概覽

新特性

Hive View 2.0

  1. QUERY界面
  1. TABLES界面

注意:TABLES界面可以對hive表元數(shù)據(jù)進(jìn)行編輯操作

  1. SETTINGS界面

注意:SETTINGS界面可以用戶自定義配置項(xiàng),且重新登錄后仍然生效

使用Hive View 2.0與之前的Hive View相同,需要關(guān)閉HDFS權(quán)限檢查功能(dfs.permissions.enabled)

  1. 執(zhí)行測試語句
select tb1.id,count(tb2.id) from dual tb1 join  dual tb2 on tb1.id = tb2.id group by tb1.id order by tb1.id

更完善的Grafana

其它特性有待繼續(xù)研究

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 230,563評論 6 544
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 99,694評論 3 429
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 178,672評論 0 383
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經(jīng)常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 63,965評論 1 318
  • 正文 為了忘掉前任,我火速辦了婚禮,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 72,690評論 6 413
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 56,019評論 1 329
  • 那天,我揣著相機(jī)與錄音,去河邊找鬼。 笑死,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 44,013評論 3 449
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 43,188評論 0 290
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 49,718評論 1 336
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 41,438評論 3 360
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 43,667評論 1 374
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 39,149評論 5 365
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 44,845評論 3 351
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 35,252評論 0 28
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 36,590評論 1 295
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 52,384評論 3 400
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 48,635評論 2 380

推薦閱讀更多精彩內(nèi)容