paulwong

          hadoop集群監(jiān)控工具ambari安裝

            Apache Ambari是對(duì)Hadoop進(jìn)行監(jiān)控、管理和生命周期管理的開源項(xiàng)目。它也是一個(gè)為Hortonworks數(shù)據(jù)平臺(tái)選擇管理組建的項(xiàng)目。Ambari向Hadoop MapReduce、HDFS、 HBase、Pig, Hive、HCatalog以及Zookeeper提供服務(wù)。最近準(zhǔn)備裝ambari,在網(wǎng)上找了許久,沒找到比較系統(tǒng)的ambari安裝過程,于是,就根據(jù)官網(wǎng)進(jìn)行了安裝,下面是我推薦的正確的較完善的安裝方式,希望對(duì)大家有所幫助。

            一、準(zhǔn)備工作

            1、系統(tǒng):我的系統(tǒng)是CentOS6.2,x86_64,本次集群采用兩個(gè)節(jié)點(diǎn)。管理節(jié)點(diǎn):192.168.10.121;客戶端節(jié)點(diǎn):192.168.10.122

            2、系統(tǒng)最好配置能上網(wǎng),這樣方便后面的操作,否則需要配置yum倉庫,比較麻煩。

            3、集群中ambari-serveer(管理節(jié)點(diǎn))到客戶端配置無密碼登錄。

            4、集群同步時(shí)間

            5、SELinux,iptables都處于關(guān)閉狀態(tài)。

            6、ambari版本:1.2.0

            二、安裝步驟

            A、配置好集群環(huán)境

          ############  配置無密碼登錄  #################
          [root@ccloud121 ~]# ssh-keygen -t dsa
          [root@ccloud121 ~]# cat /root/.ssh/id_dsa.pub >> /root/.ssh/authorized_keys
          [root@ccloud121 ~]# scp /root/.ssh/id_dsa.pub 192.168.10.122:/root/
          [root@ccloud121 ~]# ssh 192.168.10.122
          [root@ccloud122 ~]# cat /root/.ssh/id_dsa.pub >> /root/.ssh/authorized_keys

          #############  NTP 時(shí)間同步  #################

          [root@ccloud121 ~]# ntpdate time.windows.com
          [root@ccloud121 ~]# ssh ccloud122 ntpdate time.windows.com

          ###########  SELinux & iptables 關(guān)閉   ###########

          [root@ccloud121 ~]# setenforce 0
          [root@ccloud121 ~]# ssh ccloud122 setenforce 0
          [root@ccloud121 ~]# chkconfig iptables off
          [root@ccloud121 ~]# service iptables stop
          [root@ccloud121 ~]# ssh ccloud122 chkconfig iptables off
          [root@ccloud121 ~]# ssh ccloud122 service iptables stop

            B、管理節(jié)點(diǎn)上安裝ambari-server

              1、下載repo文件     

          [root@ccloud121 ~]# wget http://public-repo-1.hortonworks.com/AMBARI-1.x/repos/centos6/ambari.repo

          [root@ccloud121 ~]# cp ambari.repo /etc/yum.repos.d

              這樣,ambari-server的yum倉庫就做好了。

              2、安裝epel倉庫

          [root@ccloud121 ~]# yum install epel-release   # 查看倉庫列表,應(yīng)該有HDP,EPEL [root@ccloud121 ~]# yum repolist

              3、通過yum安裝amabari bits,這同時(shí)也會(huì)安裝PostgreSQL

          [root@ccloud121 ~]# yum install ambari-server

               這個(gè)步驟要等一會(huì),它需要上網(wǎng)下載,大概39M左右。

              4、運(yùn)行ambari-server setup,安裝ambari-server,它會(huì)自動(dòng)安裝配置PostgreSQL,同時(shí)要求輸入用戶名和密碼,如果按n,它用默認(rèn)的用戶名/密碼值:ambari-server/bigdata。接著就開始下載安裝JDK。安裝完成后,ambari-server就可以啟動(dòng)了。

            三、集群啟動(dòng)

              

              1、直接接通過ambari-server start和amabari-server stop即可啟動(dòng)和關(guān)閉ambari-serveer。

              2、啟動(dòng)成功后,在瀏覽器輸入http://192.168.10.121:8080

              界面如下圖所示:

              

          登錄名和密碼都是admin。

          這樣就可以登錄到管理控制臺(tái)。


          posted on 2013-05-03 13:55 paulwong 閱讀(678) 評(píng)論(0)  編輯  收藏 所屬分類: HADOOP

          主站蜘蛛池模板: 安吉县| 东源县| 武川县| 安丘市| 大连市| 哈密市| 新竹市| 湘潭市| 巴楚县| 电白县| 大余县| 柘荣县| 龙州县| 南木林县| 金溪县| 武夷山市| 松阳县| 开封县| 宜黄县| 福清市| 恩施市| 武夷山市| 湖口县| 惠州市| 朝阳市| 广平县| 大姚县| 安丘市| 库尔勒市| 惠州市| 汪清县| 翁源县| 辽宁省| 南郑县| 青浦区| 阿克陶县| 彭泽县| 龙州县| 水富县| 运城市| 上饶县|