<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: [SOLVED] Ambari 2.4.0.1 fails to install HDP 2.5.0.0: yum repo and version mismatch in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLVED-Ambari-2-4-0-1-fails-to-install-HDP-2-5-0-0-yum-repo/m-p/139915#M39951</link>
    <description>&lt;P&gt;Just ran into this one myself. Looks like Ambari parses the output of hdp-select to determine the full package name to install:&lt;/P&gt;&lt;PRE&gt;rpm -q --queryformat '%{version}-%{release}' hdp-select | sed -e 's/\.el[0-9]//g'&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Jan 2017 04:45:16 GMT</pubDate>
    <dc:creator>elserj</dc:creator>
    <dc:date>2017-01-11T04:45:16Z</dc:date>
    <item>
      <title>[SOLVED] Ambari 2.4.0.1 fails to install HDP 2.5.0.0: yum repo and version mismatch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLVED-Ambari-2-4-0-1-fails-to-install-HDP-2-5-0-0-yum-repo/m-p/139913#M39949</link>
      <description>&lt;P&gt;I'm doing a fresh install of Ambari 2.4.0.1 and HDP 2.5.0.0. Ambari is working fine, I can go through the wizard and select the stack (2.5.0.0), do a manual registration of my hosts, assign the components (master/slave) and start the deployment.&lt;/P&gt;&lt;P&gt;The "Install, Test and Start" phase fails with the following stacktrace:&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py", line 174, in &amp;lt;module&amp;gt;
    DataNode().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py", line 49, in install
    self.install_packages(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 567, in install_packages
    retry_count=agent_stack_retry_count)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, 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 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/yumrpm.py", 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/__init__.py", 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/__init__.py", line 91, in _call_with_retries
    code, out = func(cmd, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 71, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 93, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 141, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 294, 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_2_0_258' returned 1. Error: Nothing to do&lt;/PRE&gt;&lt;P&gt;It fails installing hadoop_2_4_2_0_258 while I did select HDP 2.5.0.0 stack ?!?!&lt;/P&gt;&lt;P&gt;Looking at the yum repo set during the manual registration, it makes sense that version 2.4.2.0 is not found, since it's properly pointing to 2.5 repo:&lt;/P&gt;&lt;PRE&gt;$ cat /etc/yum.repos.d/HDP.repo
[HDP-2.5]
name=HDP-2.5
baseurl=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.5.0.0


path=/
enabled=1
&lt;/PRE&gt;&lt;P&gt;Why are the wrong version tried to be installed on the nodes?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 14:59:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLVED-Ambari-2-4-0-1-fails-to-install-HDP-2-5-0-0-yum-repo/m-p/139913#M39949</guid>
      <dc:creator>benoit</dc:creator>
      <dc:date>2016-09-07T14:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED] Ambari 2.4.0.1 fails to install HDP 2.5.0.0: yum repo and version mismatch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLVED-Ambari-2-4-0-1-fails-to-install-HDP-2-5-0-0-yum-repo/m-p/139914#M39950</link>
      <description>&lt;P&gt;Replying to my own question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For some reason, hdp-select was partially installe with a version 2.4.2.0.&lt;/P&gt;&lt;P&gt;Running a "yum upgrade hdp-select" on all the nodes did fix the problem of version mismatch.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 15:16:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLVED-Ambari-2-4-0-1-fails-to-install-HDP-2-5-0-0-yum-repo/m-p/139914#M39950</guid>
      <dc:creator>benoit</dc:creator>
      <dc:date>2016-09-07T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: [SOLVED] Ambari 2.4.0.1 fails to install HDP 2.5.0.0: yum repo and version mismatch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLVED-Ambari-2-4-0-1-fails-to-install-HDP-2-5-0-0-yum-repo/m-p/139915#M39951</link>
      <description>&lt;P&gt;Just ran into this one myself. Looks like Ambari parses the output of hdp-select to determine the full package name to install:&lt;/P&gt;&lt;PRE&gt;rpm -q --queryformat '%{version}-%{release}' hdp-select | sed -e 's/\.el[0-9]//g'&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Jan 2017 04:45:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLVED-Ambari-2-4-0-1-fails-to-install-HDP-2-5-0-0-yum-repo/m-p/139915#M39951</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2017-01-11T04:45:16Z</dc:date>
    </item>
  </channel>
</rss>

