Ambari安装

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值