Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

installing HDP version 2.6.5 from the network failed on one of cluster machine

Highlighted

installing HDP version 2.6.5 from the network failed on one of cluster machine

80445-capturepng1.png

80446-capture.png

hi all

we are upgrade now the version HDP 2.6.4 to 2.6.5

we saw that upgrade performed successfully on all machines except master01 machine

2018-07-10 07:36:47,230 - Installing
package hive_2_6_5_0_292-webhcat ('/usr/bin/yum -d 0 -e 0 -y install
hive_2_6_5_0_292-webhcat')<br>2018-07-10 07:36:47,815 -
Package['hive2_2_6_5_0_292'] {'retry_on_repo_unavailability': False,
'retry_count': 5, 'action': ['upgrade']}<br>2018-07-10 07:36:47,815 - Installing
package hive2_2_6_5_0_292 ('/usr/bin/yum -d 0 -e 0 -y install
hive2_2_6_5_0_292')<br>2018-07-10 07:36:48,470 -
Package['tez_hive2_2_6_5_0_292'] {'retry_on_repo_unavailability': False,
'retry_count': 5, 'action': ['upgrade']}<br>2018-07-10 07:36:48,471 - Installing
package tez_hive2_2_6_5_0_292 ('/usr/bin/yum -d 0 -e 0 -y install
tez_hive2_2_6_5_0_292')<br>2018-07-10 07:36:49,093 -
Package['slider_2_6_5_0_292'] {'retry_on_repo_unavailability': False,
'retry_count': 5, 'action': ['upgrade']}<br>2018-07-10 07:36:49,094 - Installing
package slider_2_6_5_0_292 ('/usr/bin/yum -d 0 -e 0 -y install slider_2_6_5_0_292')<br>2018-07-10 07:36:49,732 - No package
found for storm_${stack_version}-slider-client(storm_(\d|_)+-slider-client$)<br>2018-07-10 07:36:49,733 -
Package[None] {'retry_on_repo_unavailability': False, 'retry_count': 5,
'action': ['upgrade']}<br>2018-07-10 07:36:49,733 - Installing
package None ('/usr/bin/yum -d 0 -e 0 -y install ''')<br>2018-07-10 07:36:50,331 - Execution of
'/usr/bin/yum -d 0 -e 0 -y install ''' returned 1. Error: Nothing to do<br>2018-07-10 07:36:50,331 - Failed to
install package None. Executing '/usr/bin/yum clean metadata'<br>2018-07-10 07:36:50,854 - Retrying to
install package None after 30 seconds<br>2018-07-10 07:37:23,281 - Package
Manager failed to install packages. Error: Execution of '/usr/bin/yum -d 0 -e 0
-y install ''' returned 1. Error: Nothing to do

seems that yum not take the pkg - /usr/bin/yum -d 0 -e 0 -y install '''

in order to solve this we do the following steps but these steps not solve this issue

yum-complete-transaction

ambari agent restart 
ambari server restart

please advice why this happens only on one machine ? and all other upgrade done successfully ?

Michael-Bronson
5 REPLIES 5
Highlighted

Re: installing HDP version 2.6.5 from the network failed on one of cluster machine

Cloudera Employee

Hi @Michael Bronson ,

this could happen because of issues like download speed or latency problems accessing the repos, the result is repo inconsistency state.

You can take a look at "/var/log/yum.log"

Also, take a look at this from JIRA: Packages Cannot Be Installed When Yum Transactions Fail

Best regards,

Samir

Highlighted

Re: installing HDP version 2.6.5 from the network failed on one of cluster machine

I checked the yum.log but not see any issues , also on that machine not see network problem , so what chould be else ?

Michael-Bronson
Highlighted

Re: installing HDP version 2.6.5 from the network failed on one of cluster machine

Cloudera Employee
@Michael Bronson

by your log:

2018-07-10 07:36:49,732 - No package found for storm_${stack_version}-slider-client(storm_(\d|_)+-slider-client$)<br>
2018-07-10 07:36:49,733 - Package[None] {'retry_on_repo_unavailability': False, 'retry_count': 5, 'action': ['upgrade']}<br>
2018-07-10 07:36:49,733 - Installing package None ('/usr/bin/yum -d 0 -e 0 -y install ''')<br>
2018-07-10 07:36:50,331 - Execution of '/usr/bin/yum -d 0 -e 0 -y install ''' returned 1. Error: Nothing to do<br>

if you take a look at Jira comment:

"I think what's happening here is that the agent receives the command to install storm. During the course of the installation - the yum command gets killed (possibly by the agent itself) and the agent retries to install the package quietly. It then is unable to find the package anymore since it no longer is listed as "available" and is now "installed" with the installed repository association."

by source code, you can find here how it works script.py

def get_package_from_available(self, name, available_packages_in_repos):
    """
    This function matches package names with ${stack_version} placeholder to actual package names from Ambari-managed repository.
    Package names without ${stack_version} placeholder are returned as is.
    """
    if STACK_VERSION_PLACEHOLDER not in name:
      return name
    package_delimiter = '-' if OSCheck.is_ubuntu_family() else '_'
    package_regex = name.replace(STACK_VERSION_PLACEHOLDER, '(\d|{0})+'.format(package_delimiter)) + "$"
    for package in available_packages_in_repos:
      if re.match(package_regex, package):
        return package
    Logger.warning("No package found for {0}({1})".format(name, package_regex))

Probably storm_2_6_5_0_292-slider-client was partially installed and wasn't present as an available package.

You can check with:

yum list | grep slider-client 

the status of the package, if already installed remove and install again.

Samir

Highlighted

Re: installing HDP version 2.6.5 from the network failed on one of cluster machine

so the final solution for my problem is to remove all what install ( by upgrade ) on the machine ? and try to upgrade again - am I correct ?

Michael-Bronson

Re: installing HDP version 2.6.5 from the network failed on one of cluster machine

Cloudera Employee
@Michael Bronson

no, just need to remove slider-client package because of this:

No packagefound for storm_${stack_version}-slider-client(storm_(\d|_)+-slider-client$)<br>
Don't have an account?
Coming from Hortonworks? Activate your account here