ambari-server的安装
1、机器环境
centos 6
2、准备好两个文件
/etc/yum.repos.d/ambari.repo和/etc/yum.repos.d/hdp.repo
$cat ambari.repo
#VERSION_NUMBER=2.2.2.0-460
[Updates-ambari-2.2.2.0]
name=ambari-2.2.2.0 - Updates
baseurl=http://100.81.166.82/AMBARI-2.2.2.0/centos6/2.2.2.0-460
gpgcheck=1
gpgkey=http://100.81.166.82/AMBARI-2.2.2.0/centos6/2.2.2.0-460/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
$cat hdp.repo
#VERSION_NUMBER=2.4.2.0-258
[HDP-2.4.2.0]
name=HDP Version - HDP-2.4.2.0
baseurl=http://100.81.166.82/hdp/HDP/centos6/2.x/updates/2.4.2.0
gpgcheck=1
gpgkey=http://100.81.166.82/hdp/HDP/centos6/2.x/updates/2.4.2.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
[HDP-UTILS-1.1.0.20]
name=HDP Utils Version - HDP-UTILS-1.1.0.20
baseurl=http://100.81.166.82/hdp/HDP-UTILS-1.1.0.20/repos/centos6
gpgcheck=1
gpgkey=http://100.81.166.82/hdp/HDP-UTILS-1.1.0.20/repos/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
这种离线安装呢,基本上就是在100.81.166.82架起一个apache作为rpm包的下载服务器,至于这个怎么搭建安装的,请看另一篇博客。
(直接解压,到/var/www/html目录下,然后都是直接替换到RPM-GPG-KEY所在的那一层目录,并不需要createrepo之类的)
3、安装ambari-server
直接在你要安装的机器上执行:
yum install ambari-server
$sudo yum install ambari-server
Loaded plugins: branch, fastestmirror, security
Loading mirror speeds from cached hostfile
HDP-2.4.2.0 | 2.9 kB 00:00
HDP-2.4.2.0/primary_db | 62 kB 00:00
HDP-UTILS-1.1.0.20 | 2.9 kB 00:00
HDP-UTILS-1.1.0.20/primary_db | 27 kB 00:00
Updates-ambari-2.2.2.0 | 2.9 kB 00:00
Updates-ambari-2.2.2.0/primary_db