Support Questions
Find answers, ask questions, and share your expertise

HDP 2.4 Error: Nothing to do

Expert Contributor


I am installing an HDP cluster using a local repository. I am getting the following error during installation.

Can anyone please explain what this problem is? I cant seem to get around this error.

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/YARN/", line 147, in <module>
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/", line 219, in execute
  File "/var/lib/ambari-agent/cache/common-services/YARN/", line 38, in install
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/", line 410, in install_packages
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 154, in __init__
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 124, in run_action
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/", line 54, in action_install
    self.install_package(package_name, self.resource.use_repos, self.resource.skip_repos)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/", line 49, in install_package
    self.checked_call_with_retries(cmd, sudo=True, logoutput=self.get_logoutput())
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/", line 83, in checked_call_with_retries
    return self._call_with_retries(cmd, is_checked=True, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/", line 91, in _call_with_retries
    code, out = func(cmd, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 70, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 92, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 140, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 291, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install 'hadoop_2_4_*-yarn'' returned 1. Error: Nothing to do

Rising Star

@Ahmad Debbas

The 'Nothing to do' error typically means yum can't find the package it is trying to install, which could mean your local repo is not configured correctly (or that Ambari hasn't been updated to point to the local repo).

I would suggest you check the following:

  1. On the Ambari node, run a yum repolist command to ensure the Ambari / HDP stack are configured correctly. If this hits any errors, check the .repo files in /etc/yum.repos.d/ and make sure they are pointed at your local repository (instead of the public hwx repos).
  2. When installing the cluster via Ambari, you need to make sure you change the HDP repo links under the 'advanced repository' section to point to your local server and not the public repos. See this link: ( Ambari distributes repo files across the cluster based on what you configure here, so if you don't make this change it will distribute the public repo links and you will hit these errors