码迷,mamicode.com
首页 > 其他好文 > 详细

Ambari安装

时间:2015-06-26 23:54:47      阅读:317      评论:0      收藏:0      [点我收藏+]

标签:ambari   安装   centos   

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) <jenkin@hortonworks.com>"

 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

Ambari安装

标签:ambari   安装   centos   

原文地址:http://7737197.blog.51cto.com/7727197/1666060

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!