Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: CDH 5.8.2
-
Fix Version/s: None
-
Component/s: Packaging
-
Labels:None
-
Environment:CenOS 7
Description
YUM repository https://archive.cloudera.com/cdh5/redhat/7/x86_64/cdh/5/ is broken.
How to produce:
1. Take minimal CentOS 7
2. Install cloudera-cdh-5-0.x86_64 from CDH documentation
3. Try to use it
Proof:
[root@default-centos-72 ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@default-centos-72 ~]# rpm -q cloudera-cdh-5-0.x86_64
cloudera-cdh-5-0.x86_64
[root@default-centos-72 ~]# cat /etc/yum.repos.d/cloudera-cdh5.repo
[cloudera-cdh5]
name=Cloudera's Distribution for Hadoop, Version 5
baseurl=https://archive.cloudera.com/cdh5/redhat/7/x86_64/cdh/5/
gpgkey = https://archive.cloudera.com/cdh5/redhat/7/x86_64/cdh/RPM-GPG-KEY-cloudera
gpgcheck = 1
[root@default-centos-72 ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base cloudera-cdh5 extras updates
Cleaning up everything
[root@default-centos-72 ~]# yum search zookeeper
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00
cloudera-cdh5 | 951 B 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/4): base/7/x86_64/group_gz | 155 kB 00:00:00
(2/4): extras/7/x86_64/primary_db | 165 kB 00:00:00
(3/4): base/7/x86_64/primary_db | 5.3 MB 00:00:00
(4/4): updates/7/x86_64/primary_db | 7.8 MB 00:00:00
cloudera-cdh5/primary FAILED
https://archive.cloudera.com/cdh5/redhat/7/x86_64/cdh/5/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum 0.0 B/s | 0 B 00:00:00
Trying other mirror.
Determining fastest mirrors
- base: centos.mirror.serveriai.lt
- extras: centos.mirror.serveriai.lt
- updates: centos.mirror.serveriai.lt
cloudera-cdh5/primary | 48 kB 00:00:00
https://archive.cloudera.com/cdh5/redhat/7/x86_64/cdh/5/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
One of the configured repositories failed (Cloudera's Distribution for Hadoop, Version 5),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:
yum-config-manager --disable cloudera-cdh5
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=cloudera-cdh5.skip_if_unavailable=true
failure: repodata/primary.xml.gz from cloudera-cdh5: [Errno 256] No more mirrors to try.
https://archive.cloudera.com/cdh5/redhat/7/x86_64/cdh/5/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum