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 agent时会用到
同步集群的时间(ntp)
将内容改为enabled=0
选定master作为ambari server,需要配置该节点到其它节点的ssh免登录
[plain]
view plain
copy
- cd ~
- ssh-keygen
一直按回车,会生成默认的公钥和私钥
[sql]
view plain
copy
- .ssh/id_rsa
- .ssh/id_rsa.pub
[plain]
view plain
copy
- chmod 700 ~/.ssh
- chmod 600 ~/.ssh/authorized_keys
配置本地的免登录
[plain]
view plain
copy
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
配置其它节点的免登陆
[plain]
view plain
copy
- scp ~/.ssh/authorized_keys dn1:/root/.ssh/
- scp ~/.ssh/authorized_keys dn2:/root/.ssh/
- scp ~/.ssh/authorized_keys dn3:/root/.ssh/
将私钥从master上下载下来,配置ambari agent时会用到
[plain]
view plain
copy
- .ssh/id_rsa
同步集群的时间(ntp)
其它
[plain]
view plain
copy
- setenforce 0
- chkconfig iptables off
- /etc/init.d/iptables stop
- umask 022
Disable PackageKit
[plain]
view plain
copy
- vim /etc/yum/pluginconf.d/refresh-packagekit.conf
将内容改为enabled=0