Ambari2.7.0离线部署

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/mn_kw/article/details/90231726

一、下载安装包

wget http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/ambari-2.7.0.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/centos7/3.x/updates/3.0.0.0/HDP-3.0.0.0-centos7-rpm.tar.gz

wget http://public-repo-1.hortonworks.com/HDP-GPL/centos7-ppc/3.x/updates/3.0.0.0/HDP-GPL-3.0.0.0-centos7-ppc-gpl.tar.gz
 

三、修改yum源,实现离线安装

1、安装httpd服务(主服务器)

       [root@master ~]# yum -y install httpd
       [root@master ~]# service httpd restart
       Redirecting to /bin/systemctl restart httpd.service [root@master ~]# chkconfig httpd on

2、将上面下载的四个包放到/var/www/html目录下(主服务器)

3、制作本地源

(1)安装本地源制作相关工具(主服务器)

       [root@master ambari]# yum install yum-utils createrepo yum-plugin-priorities -y
       [root@master ambari]# createrepo ./

(2)修改文件里面的源地址(主服务器)

              修改完了执行下面命令:

      [root@master ambari]# yum clean all
      [root@master ambari]# yum makecache
      [root@master ambari]# yum repolist

(3)将创建好的文件拷贝到子节点(主服务器)        


 

       [root@master ambari]# scp /to/repo/path/xxxx.repo slavexx:/etc/yum.repos.d/
 

猜你喜欢

转载自blog.csdn.net/mn_kw/article/details/90231726