Ambari的安装

Ambari的安装

#Ambari的介绍及相关产品对比

环境说明
  • 主机
    1. ​ hadoop1 192.168.10.225 Centos 7.2
    2. ​ hadoop2 192.168.10.243 Centos 7.2
    3. ​ hadoop3 192.168.10.219 Centos 7.2
  • 软件包
    1. ​ Hadoop软件镜像压缩包
    2. ​ Ambari镜像压缩包
准备工作

​ 安装httpd

yum install httpd -y

​ 在官方下载镜像文件,其中包含两个repo文件和4个压缩包,并将其解压到httpd下:

​ 此方法使用的是离线安装,笔者使用的是在线安装,但在线安装需要读者对自己的网络充足的自信

wget http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/ambari.repo
wget http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0/hdp.repo
wget http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.1.0/ambari-2.6.1.0-centos7.tar.gz
wget http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7/HDP-UTILS-1.1.0.22-centos7.tar.gz
wget http://public-repo-1.hortonworks.com/HDP-GPL/centos7/2.x/updates/2.6.4.0/HDP-GPL-2.6.4.0-centos7-rpm.tar.gz
wget http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0/HDP-2.6.4.0-centos7-rpm.tar.gz

​ 将repo文件复制到yum配置文件下

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

​ 配置两个repo文件

#ambari源
#VERSION_NUMBER=2.2.1.1-70
[Updates-ambari-2.2.1.1]
name=ambari-2.2.1.1 - Updates
#该方法是在线安装
baseurl=http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.1.1
#离线安装:通过httpd方法,让yum访问本地仓库,注意ip后面的地址
#baseurl=http://192.168.10.225/ambari/centos6/2.x/updates/2.2.1.1
gpgcheck=1
gpgkey=http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
#离线安装:通过nginx方法,让yum访问本地仓库,注意ip后面的地址
#gpgkey=http://192.168.10.225/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

                
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值