hadoop安装和维护06--配置yum源实战

来源:互联网 发布:江西财经大学网络平台 编辑:程序博客网 时间:2024/05/18 01:43

一、配置本地DVD yum源(主要是解决linux系统包的依赖)

挂载iso文件:

 mount -o loop /var/www/html/redhat6.5.iso /mnt/

使用mount查看挂载的信息:

/var/www/html/redhat6.5.iso on /mnt

这里写图片描述

配置yum源的库文件:

[root@rhel1 yum.repos.d]# cat rhel-source.repo[rhel-source]name=Red Hat Enterprise Linux $releasever - $basearch - Sourcebaseurl=file:///mnt/Serverenabled=1gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-source-beta]name=Red Hat Enterprise Linux $releasever Beta - $basearch - Sourcebaseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/enabled=0gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[root@rhel1 yum.repos.d]# 

二、配置Ambari库

2.1、解压Ambari包:

cd /var/www/html/hdp2.3.4tar -zxvf ambari-2.2.1.0-centos6.tar.gz

2.2、配置repo文件:

[root@rhel1 yum.repos.d]# cat ambari.repo [ambari-2.2]name=ambari-2.2 - Updatesbaseurl=http://192.168.1.103/hdp2.3.4/AMBARI-2.2.1.0/centos6/2.2.1.0-161/gpgcheck=1gpgkey=http://192.168.1.103/hdp2.3.4/ABMARI-2.2.1.0/centos6/2.2.1.0-161/RPM-GPG-KEY/RPM-GPG-KEY-Jenkinsenabled=1priority=1[root@rhel1 yum.repos.d]# 

三、配置HDP-UTILS库

3.1、解压HDP-UTILS包:

cd /var/www/html/hdp2.3.4tar -zxvf  HDP-UTILS-1.1.0.20-centos6.tar.gz

3.2、配置repo文件:

cd /etc/yum.repos.dvi  HDP-UTILS.repo[root@rhel1 yum.repos.d]# cat HDP-UTILS.repo [HDP-UTILS-1.1.0.20]name=HDP-UTILS-1.1.0.20baseurl=http://192.168.1.103/hdp2.3.4/HDP-UTILS-1.1.0.20/repos/centos6/path=/enabled=1gpgcheck=0[root@rhel1 yum.repos.d]# 

配置HDP库

4.1、解压HDP包:

cd /var/www/html/hdp2.3.4tar -zxvf   

4.2、配置repo文件:

[root@rhel1 yum.repos.d]# cat HDP-2.3.4.0.repo [HDP-2.3.4.0]name=HDP-2.3.4.0baseurl=http://192.168.103/hdp2.3.4/HDP/centos6/2.x/updates/2.3.4.0/path=/enabled=1gpgcheck=0[HDP-UTILS-2.3.4.0]name=HDP-UTILS-2.3.4.0baseurl=http://192.168.1.103/hdp2.3.4/HDP-UTILS-1.1.0.20/repos/centos6/path=/enabled=1gpgcheck=0
0 0
原创粉丝点击