首先进入此目录

配置cloudera中yum在线源的操作

由此可见,此目录下没有在线yum源,将yum源更改为阿里云的yum源,操作如下:

1)centos5.*的下载连接:
[[email protected] yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

2)centos6.*的下载连接:
[[email protected] yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

3)centos7.*的下载连接:
[[email protected] yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

这是我在节点上的操作:

配置cloudera中yum在线源的操作

在makecache时会出现错误,所以在此文件进行修改

配置cloudera中yum在线源的操作

不行的话就把这些全部删除,只保留CentOS-Base.repo

然后执行就可以了

相关文章:

  • 2021-11-09
  • 2021-11-16
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-10
  • 2021-08-20
相关资源
相似解决方案