Ambari的安装
环境说明
- 主机
- hadoop1 192.168.10.225 Centos 7.2
- hadoop2 192.168.10.243 Centos 7.2
- hadoop3 192.168.10.219 Centos 7.2
- 软件包
- Hadoop软件镜像压缩包
- 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