ambari本地源配置

来源:互联网 发布:java 跳出for循环 编辑:程序博客网 时间:2024/06/05 14:59
本地源配置

配置本地源:

本次配置环境:centos6.5、ambari-2.4.1.0、hdp-2.5.0.0、hdp-untils-1.1.12

1:关闭centos的防火墙:srvice iptables stop、永久关闭防火墙:chkconfig iptables off

2:安装httpd:yum install httpd、安装完成后,启动httpd:service httpd start     开机自启动:chkconfig  httpd  start

3:关闭selinux:零时关闭:setenforce 0、永久关闭:sed -i's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

4:安装createrepo:yum install createrepo

5:将ambari本地源放入:/var/www/html/repos下

6:配置repos:在/etc/yum.repos.d/ 下配置ambari.repo、HDP.repo、hdp-until.repo

[ambari-2.4.1.0]
name=ambari-2.4.1.0
baseurl=http://192.168.10.128/repos/ambari-2.4.1.0
gpgcheck=0
enabled=1
[HDP-2.5.0.0]
name=HDP
baseurl=http://192.168.10.128/repos/HDP
gpgcheck=0
enabled=1
[HDP-UTILS-1.1.0.21]
name= HDP-UTILS-1.1.0.21
baseurl= http://192.168.10.128/repos/HDP-UTILS-1.1.0.21
gpgcheck=0
enabled=1

7:将centos源备份后删除

8:清理源缓存:yum clean all

9:重新加载源:yum makecache

本地源配置完成

原创粉丝点击