Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Repo base url invalid while registering HDP VERSION 2.6.5.


I am trying to upgrade HDP2.5.3 to HDP 2.6.5.

  1. To setup local repository with no internet access i have taken following steps:
  • download and extracted tar file for HDP 2.6.5 , HDP_UTLIS, HDP-GPL in the node hosting ambari server.
  • downloaded hdp.repo and hdp.gpl.repo file in all the host and changed base url.

2. now while registering version in ambari base url for HDP 2.6, HDP-UTILS, HDP-2.6-GPL failed validation.

baseurl for HDP 2.6 =

HDP-2.6-GPL =




Super Mentor

@Shobhna Dhami

From Ambari Server host please check if you are able to make the following curl calls to verify if the repos are properly accessible from Ambari Host or not? Or if there is any "/etc/hosts" entry issue :

# curl -iv
# curl -iv
# curl -iv


Also from ambari server host please verify if the Host is accessible and the mentioned XML file can be downloaded?


@Jay Kumar SenSharma Thanks for the reply. is ambari server host and i am able to make successful curl calls and download xml file.

For setting local repository for HDP , I deleted existing HDP.repo file for HDP and created new HDP.repo file for HDP version

I am able to register HDP but while installing getting error:

stderr: /var/lib/ambari-agent/data/errors-3360.txt

2018-09-07 14:46:16,114 - Package Manager failed to install packages. Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install mahout' returned 1.  One of the configured repositories failed (HDP-,
 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 HDP-

     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

            yum-config-manager --save --setopt=HDP-

failure: repodata/repomd.xml from HDP- [Errno 256] No more mirrors to try. [Errno 14] HTTP Error 404 - Not Found
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/custom_actions/scripts/", line 423, in install_packages
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 166, in __init__
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 124, in run_action
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/package/", line 57, in action_upgrade
    self.upgrade_package(package_name, self.resource.use_repos, self.resource.skip_repos)
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/package/", line 269, in upgrade_package
    return self.install_package(name, use_repos, skip_repos, is_upgrade)
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/package/", line 264, in install_package
    self.checked_call_with_retries(cmd, sudo=True, logoutput=self.get_logoutput())
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/package/", line 266, in checked_call_with_retries
    return self._call_with_retries(cmd, is_checked=True, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/package/", line 283, in _call_with_retries
    code, out = func(cmd, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/", line 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.