title: Ambari-Update failed (Ambari 2.4 to 2.6) - Hadoop services won't start anymore
body: <p>I just worked through this Upgrade guide for the Hortonworks Data Platform:
  <a href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-upgrade/bk_ambari-upgrade.pdf" rel="nofollow noreferrer">https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-upgrade/bk_ambari-upgrade.pdf</a></p>
  
  <p>I did all the steps as described in section 1 - 4 (Ambari upgrade). But now I have the problem, that my services won't start anymore! </p>
  
  <p><a href="https://i.stack.imgur.com/6RZey.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6RZey.png" alt="enter image description here"></a></p>
  
  <p>Ambari can find all hosts, but they won't start!</p>
  
  <p>E.g. for the HDFS starting I got the following error message:</p>
  
  <pre><code>2017-11-13 19:41:11,427 - Unable to load available packages
  Traceback (most recent call last):
    File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 771, in load_available_packages
      self.available_packages_in_repos = pkg_provider.get_available_packages_in_repos(repos)
    File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 85, in get_available_packages_in_repos
      available_packages.extend(self._get_available_packages(repo))
    File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 146, in _get_available_packages
      return self._lookup_packages(cmd, 'Available Packages')
    File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 191, in _lookup_packages
      if items[i + 2].find('@') == 0:
  IndexError: list index out of range
  Traceback (most recent call last):
    File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_client.py", line 73, in &lt;module&gt;
      HdfsClient().execute()
    File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute
      method(env)
    File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 930, in restart
      self.install(env)
    File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_client.py", line 35, in install
      import params
    File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/params.py", line 25, in &lt;module&gt;
      from params_linux import *
    File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py", line 391, in &lt;module&gt;
      lzo_packages = get_lzo_packages(stack_version_unformatted)
    File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/get_lzo_packages.py", line 45, in get_lzo_packages
      lzo_packages += [script_instance.format_package_name("hadooplzo_${stack_version}"),
    File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 538, in format_package_name
      raise Fail("Cannot match package for regexp name {0}. Available packages: {1}".format(name, self.available_packages_in_repos))
  resource_management.core.exceptions.Fail: Cannot match package for regexp name hadooplzo_${stack_version}. Available packages: []
  </code></pre>
  
  <p>(I think the most important part is the message <code>resource_management.core.exceptions.Fail: Cannot match package for regexp name hadooplzo_${stack_version}. Available packages: []</code> which looks like there would be no version (package) available...!</p>
  
  <p>I just saw, that I upgraded also the <strong>Ambari Metrics Monitor</strong>, <strong>Ambari Metrics Hadoop Sink</strong> and the <strong>Metrics Collector</strong> before starting the Services once (the manual is a little bit confusing here, see step 4.3.3)! Was this a mistake?</p>
  
  <p>I tried to upgrade from Ambari 2.4 to Ambari 2.6 (HDP 2.5 installed)! Operating system is CentOS 7.</p>
  
  <p>However, I need to reset / downgrade the Ambari or upgrade the Services to be able to start them again! Can someone help? Any help would be appreciated! Thank you!</p>