Ambari安装

参照 http://ambari.apache.org/1.2.2/installing-hadoop-using-ambari/content/ambari-chap2-1.html
1、Ambari安装步骤:
CentOS 6 命令行下输入:

wget http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/ambari.repo

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

yum install epel-release

yum repolist

yum install ambari-server

ambari-server setup

--默认的数据库账号密码:ambari-server/bigdata

ambari-server start

--默认用户名密码:admin/admin

------------------------------------------------------------------------
可以修改端口号
在/etc/ambari-server/conf/ambari.properties文件增加

client.api.port=<port_number>

2、配置hosts
在每台机器上修改hosts:
vim /etc/hosts
10.*.*.120 master
10.*.*.121 dn1
10.*.*.122 dn2
10.*.*.123 dn3

3、配置ssh免登录

选定master作为ambari server,需要配置该节点到其它节点的ssh免登录

[plain]  view plain copy
  1. cd ~  
  2. ssh-keygen  

一直按回车,会生成默认的公钥和私钥

[sql]  view plain copy
  1. .ssh/id_rsa  
  2. .ssh/id_rsa.pub  
执行

[plain]  view plain copy
  1. chmod 700 ~/.ssh  
  2. chmod 600 ~/.ssh/authorized_keys  

配置本地的免登录

[plain]  view plain copy
  1. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys  

配置其它节点的免登陆

[plain]  view plain copy
  1. scp ~/.ssh/authorized_keys dn1:/root/.ssh/  
  2. scp ~/.ssh/authorized_keys dn2:/root/.ssh/  
  3. scp ~/.ssh/authorized_keys dn3:/root/.ssh/  

将私钥从master上下载下来,配置ambari agent时会用到

[plain]  view plain copy
  1. .ssh/id_rsa  

同步集群的时间(ntp)

其它

[plain]  view plain copy
  1. setenforce 0  
  2. chkconfig iptables off  
  3. /etc/init.d/iptables stop  
  4. umask 022  

Disable PackageKit

[plain]  view plain copy
  1. vim /etc/yum/pluginconf.d/refresh-packagekit.conf  

将内容改为enabled=0

你可能感兴趣的:(Ambari安装)