<?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 upgrade ambari to 2.6.0 failed due to schema in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/upgrade-ambari-to-2-6-0-failed-due-to-schema/m-p/205377#M167343</link>
    <description>&lt;P&gt;I'm trying upgrade ambari-server and ambari-agent from 2.2.2 to 2.6 in Centos 7.&lt;/P&gt;&lt;P&gt;Refered to official &lt;A href="http://https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-upgrade/content/ambari_upgrade_guide.html"&gt;document &lt;/A&gt; , I progressed smoothly until the command "ambari-server upgrade",And the /var/log/ambari-server/ambari-server.log shows:&lt;/P&gt;&lt;PRE&gt;17 Nov 2017 14:03:37,055  INFO [main] LockFactory:53 - Lock profiling is disabled
17 Nov 2017 14:03:37,062  INFO [main] SchemaUpgradeHelper:394 - Upgrading schema to target version = 2.6.0.0
17 Nov 2017 14:03:37,082  INFO [main] SchemaUpgradeHelper:403 - Upgrading schema from source version = 2.2.2
17 Nov 2017 14:03:37,084 ERROR [main] SchemaUpgradeHelper:437 - Exception occurred during upgrade, failed
org.apache.ambari.server.AmbariException: Database version does not meet minimal upgrade requirements. Expected version should be not less than 2.4.0, current version is 2.2.2
        at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:408)
17 Nov 2017 14:05:09,089  INFO [main] AmbariServer:207 - Found org/apache/ambari/server/controller/AmbariServer.class class in file:/usr/lib/ambari-server/ambari-server-2.6.0.0.267.jar!/org/apache/ambari/server/controller/AmbariServer.class
&lt;/PRE&gt;&lt;PRE&gt;Ambari-server 2.2.2
HDP 2.4.3.0-227
Postgres  9.2.18
&lt;/PRE&gt;&lt;P&gt;It looks like that the least version before upgrading to 2.6 is 2.4. But I notice &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-installation/content/determine_stack_compatibility.html"&gt;this page&lt;/A&gt;  imply the version after 2.2.0 is valid for upgrading. Someone have an idea?&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2017 15:50:21 GMT</pubDate>
    <dc:creator>wanhaoran</dc:creator>
    <dc:date>2017-11-17T15:50:21Z</dc:date>
    <item>
      <title>upgrade ambari to 2.6.0 failed due to schema</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrade-ambari-to-2-6-0-failed-due-to-schema/m-p/205377#M167343</link>
      <description>&lt;P&gt;I'm trying upgrade ambari-server and ambari-agent from 2.2.2 to 2.6 in Centos 7.&lt;/P&gt;&lt;P&gt;Refered to official &lt;A href="http://https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-upgrade/content/ambari_upgrade_guide.html"&gt;document &lt;/A&gt; , I progressed smoothly until the command "ambari-server upgrade",And the /var/log/ambari-server/ambari-server.log shows:&lt;/P&gt;&lt;PRE&gt;17 Nov 2017 14:03:37,055  INFO [main] LockFactory:53 - Lock profiling is disabled
17 Nov 2017 14:03:37,062  INFO [main] SchemaUpgradeHelper:394 - Upgrading schema to target version = 2.6.0.0
17 Nov 2017 14:03:37,082  INFO [main] SchemaUpgradeHelper:403 - Upgrading schema from source version = 2.2.2
17 Nov 2017 14:03:37,084 ERROR [main] SchemaUpgradeHelper:437 - Exception occurred during upgrade, failed
org.apache.ambari.server.AmbariException: Database version does not meet minimal upgrade requirements. Expected version should be not less than 2.4.0, current version is 2.2.2
        at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:408)
17 Nov 2017 14:05:09,089  INFO [main] AmbariServer:207 - Found org/apache/ambari/server/controller/AmbariServer.class class in file:/usr/lib/ambari-server/ambari-server-2.6.0.0.267.jar!/org/apache/ambari/server/controller/AmbariServer.class
&lt;/PRE&gt;&lt;PRE&gt;Ambari-server 2.2.2
HDP 2.4.3.0-227
Postgres  9.2.18
&lt;/PRE&gt;&lt;P&gt;It looks like that the least version before upgrading to 2.6 is 2.4. But I notice &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-installation/content/determine_stack_compatibility.html"&gt;this page&lt;/A&gt;  imply the version after 2.2.0 is valid for upgrading. Someone have an idea?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 15:50:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrade-ambari-to-2-6-0-failed-due-to-schema/m-p/205377#M167343</guid>
      <dc:creator>wanhaoran</dc:creator>
      <dc:date>2017-11-17T15:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade ambari to 2.6.0 failed due to schema</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrade-ambari-to-2-6-0-failed-due-to-schema/m-p/205378#M167344</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48362/wanhaoran.html" nodeid="48362"&gt;@Nick One&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;You must first upgrade to HDP 2.4 or higher using Ambari 2.5.2,2.4.3, 2.2.2, 2.2.1, 2.2, 2.1, or 2.0 before upgrading to Ambari 2.6&lt;/PRE&gt;&lt;P&gt;Please refer to the following Doc for more detailed info on this which states the same: &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-upgrade/content/ambari_upgrade_guide.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-upgrade/content/ambari_upgrade_guide.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 15:51:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrade-ambari-to-2-6-0-failed-due-to-schema/m-p/205378#M167344</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-17T15:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade ambari to 2.6.0 failed due to schema</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrade-ambari-to-2-6-0-failed-due-to-schema/m-p/205379#M167345</link>
      <description>&lt;P&gt;Not exactly, I'm using HDP 2.4.3. Maybe I shoud also upgrade the Ambari to 2.4 at first?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 16:20:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrade-ambari-to-2-6-0-failed-due-to-schema/m-p/205379#M167345</guid>
      <dc:creator>wanhaoran</dc:creator>
      <dc:date>2017-11-17T16:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade ambari to 2.6.0 failed due to schema</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrade-ambari-to-2-6-0-failed-due-to-schema/m-p/205380#M167346</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48362/wanhaoran.html" nodeid="48362"&gt;@Nick One&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ambari Upgrade path should be following.   You should upgrade from ambari 2.2.2 to Ambari 2.5 and then  from ambari 2.5 to Ambari 2.6.      For more information on the behaviour change please refer to :  &lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/AMBARI-21268" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-21268&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;From Ambari 2.2   ----&amp;gt;   Ambari 2.5   ----&amp;gt; Ambari 2.6&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Nov 2017 18:27:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrade-ambari-to-2-6-0-failed-due-to-schema/m-p/205380#M167346</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-17T18:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade ambari to 2.6.0 failed due to schema</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrade-ambari-to-2-6-0-failed-due-to-schema/m-p/205381#M167347</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It works! I downgrade Ambari to 2.5.1 and run 'ambari-server upgrade'. After successful completion, I upgrade Ambari to 2.6.0 and run 'ambari-server upgrade' again. This time the server startup without problem. Thank you for the solution.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 19:58:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrade-ambari-to-2-6-0-failed-due-to-schema/m-p/205381#M167347</guid>
      <dc:creator>wanhaoran</dc:creator>
      <dc:date>2017-11-17T19:58:33Z</dc:date>
    </item>
  </channel>
</rss>

