Support Questions

Find answers, ask questions, and share your expertise

Cloudera repository configuration issue - metadata file does not match checksum

New Contributor

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 [Errno -1] Metadata file does not match checksum
Trying other mirror.
cloudera-manager/other FAILED [Errno -1] Metadata file does not match checksum
Trying other mirror.
cloudera-manager/filelists FAILED [Errno -1] Metadata file does not match checksum
Trying other mirror.
cloudera-manager/primary | 4.3 kB 00:00:00 [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
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

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. [Errno -1] Metadata file does not match checksum


Rising Star
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.


New Contributor

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

New Contributor
Hi Pjani
Please can you share the repository change done for fixing this.


You can edit the baseurl in the /etc/yum.repos.d/cloudera-manager.repo file to point to 5.15.1 (latest as of today for c5).For example:






Run: yum clean all


Then the installation will work