hadoop-10-创建yum资源库
1,在/etc/yum.repos.d/下面创建
ambari.repo HDP.repo HDP-UTILS.repo
三个文件;
[root@server-1 yum.repos.d]# more ambari.repo
#VERSION_NUMBER=2.5.0.3-7
[ambari-2.5.0.3]
name=ambari Version - ambari-2.5.0.3
baseurl=http://server-1/ambari/centos6
gpgcheck=0
[root@server-1 yum.repos.d]# more HDP.repo
[HDP-2.6]
name=HDP-2.6
baseurl=http://server-1/HDP/centos6/
path=/
enabled=1
gpgcheck=0
[root@server-1 yum.repos.d]# more HDP-UTILS.repo
[HDP-UTILS-1.1.0.21]
name=HDP-UTILS-1.1.0.21
baseurl=http://server-1/HDP-UTILS-1.1.0.21/repos/centos6/
path=/
enabled=1
gpgcheck=0
2, yum install yum-utils createrepo yum-plugin-priorities -y
3,在/software/www/html目录下面执行
createrepo ./
4,使用yum repolist查看一下