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

HDP upgrade 2.6.2 to 2.6.3 installation fails with error

Explorer

2017-11-03 08:45:46,126 - Package Manager failed to install packages. Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install ''' returned 1. Error: Nothing to do Traceback (most recent call last): File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 345, in install_packages retry_count=agent_stack_retry_count) File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, in __init__ self.env.run() File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run self.run_action(resource, action) File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 57, in action_upgrade self.upgrade_package(package_name, self.resource.use_repos, self.resource.skip_repos) File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 256, in upgrade_package return self.install_package(name, use_repos, skip_repos, is_upgrade) File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 251, 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/__init__.py", line 251, 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/__init__.py", line 268, in _call_with_retries code, out = func(cmd, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner result = function(command, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper result = _call(command, **kwargs_copy) File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call raise ExecutionFailed(err_msg, code, out, err) ExecutionFailed: Execution of '/usr/bin/yum -d 0 -e 0 -y install ''' returned 1. Error: Nothing to do Traceback (most recent call last): File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 424, in <module> InstallPackages().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute method(env) File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 150, in actionexecute raise Fail("Failed to distribute repositories/install packages") resource_management.core.exceptions.Fail: Failed to distribute repositories/install packages stdout: /var/lib/ambari-agent/data/output-2351.txt 2017-11-03 08:44:53,736 - Will install packages for repository version 2.6.3.0-235 2017-11-03 08:44:53,736 - Repository for HDP/2.6.3.0-235/HDP-2.6 is not managed by Ambari 2017-11-03 08:44:53,736 - Repository for HDP/2.6.3.0-235/HDP-UTILS-1.1.0.21 is not managed by Ambari 2017-11-03 08:44:53,737 - Cannot find the stack name in the command. Stack tools cannot be loaded 2017-11-03 08:44:53,737 - call[('ambari-python-wrap', None, 'versions')] {} 2017-11-03 08:44:53,756 - call returned (1, "/bin/ambari-python-wrap: can't find '__main__' module in ''") 2017-11-03 08:44:53,756 - Cannot find the stack name in the command. Stack tools cannot be loaded 2017-11-03 08:44:53,757 - Package[None] {'retry_on_repo_unavailability': False, 'retry_count': 5, 'use_repos': {}, 'action': ['upgrade']} 2017-11-03 08:44:53,757 - Installing package None ('/usr/bin/yum -d 0 -e 0 -y install ''') 2017-11-03 08:44:54,260 - Execution of '/usr/bin/yum -d 0 -e 0 -y install ''' returned 1. Error: Nothing to do 2017-11-03 08:44:54,261 - Failed to install package None. Executing '/usr/bin/yum clean metadata' 2017-11-03 08:44:54,608 - Retrying to install package None after 30 seconds 2017-11-03 08:45:46,126 - Package Manager failed to install packages. Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install ''' returned 1. Error: Nothing to do Traceback (most recent call last):

4 REPLIES 4

Super Mentor

@sijeesh kunnotharamal

Can you please share the content of the following directory and also the output of the HDP.repo file (or any other HDP*.repo" file).

# yum clean all
# ls -lart /etc/yum.repos.d 
# cat /etc/yum.repos.d/HDP.repo

.
Looks like a repo issue at this point. Also please check if the HDP 2.6.3 repo is accessible form your hosts (i mean the internet connectivity).

.

Super Mentor

@sijeesh kunnotharamal

The strange thing i see in your error is that it is not specifying which package it is trying to install that is failing?

Execution of '/usr/bin/yum -d 0 -e 0 -y install ''' returned 1

Which looks like an issue.

May be if you look at the Ambari UI Operation Log then you will be able to find which package ambari was trying to install and it got failed. Once we know the package details (Like for example if it was failing to install Spark) then you as a workaround you should try to manually install the package on the respective host and then continue the Upgrade wizard .

Example:

# yum install spark_2_6_3_*

.

Explorer

Thanks..manually upgraded the packages that resolved the issue. Thanks

Super Mentor

@sijeesh kunnotharamal

As the issue is resolved, hence it will be also great if you can mark this HCC thread as Answered by clicking on the "Accept" Button on the correct answer. As we have a workaround which can be useful for may other HCC users who encounter this issue to help them quickly find the solution when they encounter the same issue.

; ;