Centos7.4配置CDH6.3.1的本地yum源

 

一.下载CDH需要的包

下载地址:

https://archive.cloudera.com/cm6/6.3.1/redhat7/yum/

下载到目录:

/var/www/html/repos/cm/repodata

/var/www/html/repos/cm/RPMS

allkeys.asc文件:放在/var/www/html/repos/cm

Centos7.4配置CDH6.3.1的本地yum源_第1张图片

二.配置只在本地访问的源

[root@node1 yum.repos.d]# pwd

/etc/yum.repos.d

 

[root@node1 yum.repos.d]# cat cloudera-manager.repo

 

[cloudera-manager]

name = Cloudera Manager, Version 6.3.1

baseurl = file:///var/www/html/repos/cm/

gpgcheck = 0

 

然后执行:

# yum clean all

# yum list

即可。

三.配置本地和其他机器都可以访问的源

1.安装http服务

yum install httpd

systemctl start httpd.service

systemctl enable httpd.service

2.配置cloudera-manager.repo文件

[root@node1 yum.repos.d]# pwd

/etc/yum.repos.d

 

[root@node1 yum.repos.d]# cat cloudera-manager.repo

 

[cloudera-manager]

name = Cloudera Manager, Version 6.3.1

baseurl = http://60.60.40.30/repos/cm/

gpgcheck = 0

 

然后执行:

# yum clean all

# yum list

 

即可。

 

 

你可能感兴趣的:(hadoop,cdh,hdfs,大数据)