Ambari安裝

Ambari是Apache的一個開源項目,專門用來安裝和管理hadoop環境,並提供GUI的WEB頁面。

安裝過程非常簡單,只有幾步。


以在CentOS6上操作爲例


1、下載repo信息

cd /etc/yum.repos.d/

wget http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.0.1/ambari.repo


2、安裝

yum install ambari-server


3、本地配置

ambari-server setup


Total                                                                                                                                              218 kB/s |  93 MB     07:18     

warning: rpmts_HdrFromFdno: Header V4 RSA/SHA1 Signature, key ID 07513cad: NOKEY

Retrieving key from http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

Importing GPG key 0x07513CAD:

 Userid: "Jenkins (HDP Builds) <[email protected]>"

 From  : http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

Is this ok [y/N]: y

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Updating   : postgresql-libs-8.4.20-2.el6_6.x86_64                                                                                                                           1/8 

  Updating   : postgresql-8.4.20-2.el6_6.x86_64                                                                                                                                2/8 

  Installing : postgresql-server-8.4.20-2.el6_6.x86_64                                                                                                                         3/8 

  Installing : ambari-server-2.0.1-45.noarch                                                                                                                                   4/8 

  Updating   : postgresql-devel-8.4.20-2.el6_6.x86_64                                                                                                                          5/8 

  Cleanup    : postgresql-devel-8.4.18-1.el6_4.x86_64                                                                                                                          6/8 

  Cleanup    : postgresql-8.4.18-1.el6_4.x86_64                                                                                                                                7/8 

  Cleanup    : postgresql-libs-8.4.18-1.el6_4.x86_64                                                                                                                           8/8 

  Verifying  : ambari-server-2.0.1-45.noarch                                                                                                                                   1/8 

  Verifying  : postgresql-8.4.20-2.el6_6.x86_64                                                                                                                                2/8 

  Verifying  : postgresql-devel-8.4.20-2.el6_6.x86_64                                                                                                                          3/8 

  Verifying  : postgresql-server-8.4.20-2.el6_6.x86_64                                                                                                                         4/8 

  Verifying  : postgresql-libs-8.4.20-2.el6_6.x86_64                                                                                                                           5/8 

  Verifying  : postgresql-devel-8.4.18-1.el6_4.x86_64                                                                                                                          6/8 

  Verifying  : postgresql-libs-8.4.18-1.el6_4.x86_64                                                                                                                           7/8 

  Verifying  : postgresql-8.4.18-1.el6_4.x86_64                                                                                                                                8/8 


Installed:

  ambari-server.noarch 0:2.0.1-45                                                                                                                                                  


Dependency Installed:

  postgresql-server.x86_64 0:8.4.20-2.el6_6                                                                                                                                        


Dependency Updated:

  postgresql.x86_64 0:8.4.20-2.el6_6                     postgresql-devel.x86_64 0:8.4.20-2.el6_6                     postgresql-libs.x86_64 0:8.4.20-2.el6_6 



4、啓動本地ambari服務器

ambari-server start


Using python  /usr/bin/python2.6

Starting ambari-server

Ambari Server running with administrator privileges.

Organizing resource files at /var/lib/ambari-server/resources...

Server PID at: /var/run/ambari-server/ambari-server.pid

Server out at: /var/log/ambari-server/ambari-server.out

Server log at: /var/log/ambari-server/ambari-server.log

Waiting for server start....................

Ambari Server 'start' completed successfully.



7、使用瀏覽器進行確認

http://hostname:8080


默認用戶是admin,密碼admin

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章