Apache Ambari 1.4.4安装指南
(注,由于图片在word中,比较麻烦,可以在附件中下载)
操作系统:
CentOS6
集群机器列表:
hadoop.master.com(192.168.1.204)
hadoop.slave1.com(192.168.1.205)
hadoop. slave2.com(192.168.1.206)
ambari server安装节点及用户
hadoop.master.com/root
前期准备
SSH 免登陆
在hadoop.master.com 中执行ssh-keygen -t rsa,然后一直按回车,按照默认选项执行
在/root/.ssh下执行cp id_rsa.pub authorized_keys
然后将该目录下的所有文件拷贝
关闭防火墙
service iptables stop
安装MySQL
yum install mysql*
1、 下载依赖
cd /etc/yum.repos.d/
wget http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.4.4.23/ambari.repo
2、 安装ambariserver
yum install -y ambari-server
3、 启动ambariserver安装程序
ambari-serversetup
这里有两个选项,Customizeuser account for ambari-server daemon [y/n] (n)?是否用一个非root用户启动ambari-server(n);Do you acceptthe Oracle Binary Code License Agreement是否同意Oracle协议(y)
Enter advanced database configuration[y/n] (n)? y数据库配置
Choose one of the following options:
[1] - PostgreSQL (Embedded)
[2] - Oracle
[3] – MySQL
Enter choice (1): 1
选择数据库 1
后面输入数据库用户名和密码
Database Name (ambari): ambari
Username (ambari): ambari
Enter Database Password (bigdata):
Re-enter password:
Default properties detected. Usingbuilt-in database.
Checking PostgreSQL...
Running initdb: This may take upto aminute.
Initializing database: [ OK ]
About to start PostgreSQL
Configuring local database...
Connecting to the database. Attempt1...
Configuring PostgreSQL...
Restarting PostgreSQL
Ambari Server 'setup' completedsuccessfully.
Ambari Server setup安装成功,
启动ambari server
ambari-serverstart
在浏览器中访问http://192.168.1.204:8080/
输入用户名和密码 admin/admin
进入如下界面:
Advanced Repository Options只选择第二项Red Hat 6 CentOS 6Oracle Linux 6
点击Next
输入集群机器host列表
将/root/.ssh/id_rsa(hadoop.master.com的私钥)中的内容全部复制到Host Registration Information中
ssh用户默认root
点击Register and Confirm进入执行器安装页面
安装成功后(安装过程中可能需要多次重试),进入配置页面
配置hive原信息
配置OOZIE数据库信息.
配置Nagios管理员信息
点击Next进入服务安装页面
安装成功之后,可以看到各个服务的状态,成功的显示绿色,失败的则会红色
可以通过界面来重启