Reply
Highlighted
New Contributor
Posts: 2
Registered: ‎04-12-2018

Cloudera repository configuration issue - metadata file does not match checksum

Getting error as below when try to configure Cloudera repository on EC2

 

[root@ip-10-0-0-137 yum.repos.d]# yum makecache
Loaded plugins: amazon-id, product-id, rhui-lb, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
cloudera-manager | 951 B 00:00:00
rhui-REGION-client-config-server-7 | 2.9 kB 00:00:00
rhui-REGION-rhel-server-releases | 3.5 kB 00:00:00
rhui-REGION-rhel-server-rh-common | 3.8 kB 00:00:00
(1/13): rhui-REGION-client-config-server-7/x86_64/filelists_db | 1.1 kB 00:00:00
(2/13): rhui-REGION-client-config-server-7/x86_64/other_db | 1.5 kB 00:00:00
(3/13): rhui-REGION-rhel-server-releases/7Server/x86_64/group | 855 kB 00:00:00
(4/13): rhui-REGION-rhel-server-releases/7Server/x86_64/updateinfo | 2.8 MB 00:00:00
(5/13): rhui-REGION-rhel-server-rh-common/7Server/x86_64/group | 104 B 00:00:00
(6/13): rhui-REGION-rhel-server-rh-common/7Server/x86_64/filelists_db | 95 kB 00:00:00
(7/13): rhui-REGION-rhel-server-releases/7Server/x86_64/other_db | 13 MB 00:00:00
(8/13): rhui-REGION-client-config-server-7/x86_64/primary_db | 2.5 kB 00:00:00
(9/13): rhui-REGION-rhel-server-rh-common/7Server/x86_64/updateinfo | 33 kB 00:00:00
(10/13): rhui-REGION-rhel-server-rh-common/7Server/x86_64/other_db | 77 kB 00:00:00
(11/13): rhui-REGION-rhel-server-rh-common/7Server/x86_64/primary_db | 120 kB 00:00:00
(12/13): rhui-REGION-rhel-server-releases/7Server/x86_64/primary_db | 51 MB 00:00:01
(13/13): rhui-REGION-rhel-server-releases/7Server/x86_64/filelists_db | 34 MB 00:00:01
cloudera-manager/primary FAILED
https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
cloudera-manager/other FAILED
https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5/repodata/other.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
cloudera-manager/filelists FAILED
https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5/repodata/filelists.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
cloudera-manager/primary | 4.3 kB 00:00:00
https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.


One of the configured repositories failed (Cloudera Manager),
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. Run the command with the repository temporarily disabled
yum --disablerepo=cloudera-manager ...

4. Disable the repository permanently, 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-manager
or
subscription-manager repos --disable=cloudera-manager

5. 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-manager.skip_if_unavailable=true

failure: repodata/primary.xml.gz from cloudera-manager: [Errno 256] No more mirrors to try.
https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum

Cloudera Employee
Posts: 36
Registered: ‎08-13-2014

Re: Cloudera repository configuration issue - metadata file does not match checksum

Try running "yum clean all" and try running the installer again. This will clear your yum cache and will often fix this kind of issue.

Jim
New Contributor
Posts: 2
Registered: ‎04-12-2018

Re: Cloudera repository configuration issue - metadata file does not match checksum

This was resolved by changing the source for the repository, thank you for the help.

Announcements