wget http://archive-primary.cloudera.com/gplextras5/redhat/6/x86_64/gplextras/cloudera-gplextras5.repo -P /etc/yum.repos.d wget https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/cloudera-cdh5.repo mv cloudera-cdh5.repo /etc/yum.repos.d/
2.清理下下緩存php
[root@bastion-IDC yum.repos.d]# yum clean all
[root@bastion-IDC yum.repos.d]# yum makecache //將服務器上的軟件包信息緩存到本地,以提升搜索安裝軟件的速度
[root@bastion-IDC yum.repos.d]# yum updatejava
最後再次使用yum就ok了
[root@bastion-IDC yum.repos.d]# yum list緩存
scp /etc/yum.repos.d/cloudera-cdh5.repo host:/etc/ yum.repos.d服務器