您当前的位置: 首页 >  hadoop

宝哥大数据

暂无认证

  • 5浏览

    0关注

    1029博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

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

宝哥大数据 发布时间:2016-12-24 12:36:27 ,浏览量:5

一、配置本地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 - Source
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[rhel-source-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=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.4
tar -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 - Updates
baseurl=http://192.168.1.103/hdp2.3.4/AMBARI-2.2.1.0/centos6/2.2.1.0-161/
gpgcheck=1
gpgkey=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-Jenkins
enabled=1
priority=1
[root@rhel1 yum.repos.d]# 
三、配置HDP-UTILS库

3.1、解压HDP-UTILS包:

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

3.2、配置repo文件:

cd /etc/yum.repos.d
vi  HDP-UTILS.repo


[root@rhel1 yum.repos.d]# cat HDP-UTILS.repo 
[HDP-UTILS-1.1.0.20]
name=HDP-UTILS-1.1.0.20
baseurl=http://192.168.1.103/hdp2.3.4/HDP-UTILS-1.1.0.20/repos/centos6/

path=/
enabled=1
gpgcheck=0
[root@rhel1 yum.repos.d]# 
配置HDP库

4.1、解压HDP包:

cd /var/www/html/hdp2.3.4
tar -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.0
baseurl=http://192.168.103/hdp2.3.4/HDP/centos6/2.x/updates/2.3.4.0/

path=/
enabled=1
gpgcheck=0
[HDP-UTILS-2.3.4.0]
name=HDP-UTILS-2.3.4.0
baseurl=http://192.168.1.103/hdp2.3.4/HDP-UTILS-1.1.0.20/repos/centos6/

path=/
enabled=1
gpgcheck=0
关注
打赏
1587549273
查看更多评论
立即登录/注册

微信扫码登录

0.1285s