<?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 Issue when upgrade HDF2.1.2 to HDF3.0 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-when-upgrade-HDF2-1-2-to-HDF3-0/m-p/231499#M64392</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I am having below issue while upgrade HDF2.1.2 to HDF3.0&lt;/P&gt;&lt;P&gt;The issue happens when I am following the instruction as,&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.0.0/bk_ambari-upgrade/content/ambari_upgrade_guide.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.0.0/bk_ambari-upgrade/content/ambari_upgrade_guide.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And at the step of&lt;/P&gt;&lt;PRE&gt;ambari-server upgrade&lt;/PRE&gt;&lt;P&gt;The exception message is (by the way, also met the bug 82311, and 82561, and have tried to workaround following the release instruction.&lt;/P&gt;&lt;PRE&gt;INFO: Upgrading database schema INFO: Return code from schema upgrade command, retcode = 1 ERROR: Error executing schema upgrade, please check the server logs. ERROR: Error output from schema upgrade command: ERROR: Exception in thread "main" org.apache.ambari.server.AmbariException: Guice provision errors: 1) Error injecting constructor, org.apache.ambari.server.AmbariException: Unable to parse stack upgrade file at location: /var/lib/ambari-server/resources/stacks/HDF/2.0/upgrades/nonrolling-upgrade-2.0.xml at org.apache.ambari.server.stack.StackManager.&amp;lt;init&amp;gt;(StackManager.java:144) while locating org.apache.ambari.server.stack.StackManager annotated with interface com.google.inject.assistedinject.Assisted at org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:261) at org.apache.ambari.server.api.services.AmbariMetaInfo.class(AmbariMetaInfo.java:135)
&lt;/PRE&gt;&lt;P&gt;and,&lt;/P&gt;&lt;PRE&gt;[org.xml.sax.SAXParseException; systemId: file:/var/lib/ambari-server/resources/stacks/HDF/2.0/upgrades/nonrolling-upgrade-2.0.xml; lineNumber: 24; columnNumber: 22; cvc-complex-type.2.4.a: Invalid content was found starting with element 'downgrade-allowed'. One of '{upgrade-path, order}' is expected.] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)&lt;/PRE&gt;&lt;P&gt;I've checked the content of /var/lib/ambari-server/resources/stacks/HDF/2.0/upgrades/nonrolling-upgrade-2.0.xml,&lt;/P&gt;&lt;P&gt;lineNumber:24&lt;/P&gt;&lt;PRE&gt;&amp;lt;downgrade-allowed&amp;gt;false&amp;lt;/downgrade-allowed&amp;gt;&lt;/PRE&gt;&lt;P&gt;btw, attached the file for troubleshooting.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/16696-nonrolling-upgrade-20.xml" target="_blank"&gt;nonrolling-upgrade-20.xml&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/16697-nonrolling-upgrade-20.xml" target="_blank"&gt;nonrolling-upgrade-20.xml&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:53:40 GMT</pubDate>
    <dc:creator>liuruibnu</dc:creator>
    <dc:date>2022-09-16T11:53:40Z</dc:date>
    <item>
      <title>Issue when upgrade HDF2.1.2 to HDF3.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-when-upgrade-HDF2-1-2-to-HDF3-0/m-p/231499#M64392</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I am having below issue while upgrade HDF2.1.2 to HDF3.0&lt;/P&gt;&lt;P&gt;The issue happens when I am following the instruction as,&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.0.0/bk_ambari-upgrade/content/ambari_upgrade_guide.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.0.0/bk_ambari-upgrade/content/ambari_upgrade_guide.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And at the step of&lt;/P&gt;&lt;PRE&gt;ambari-server upgrade&lt;/PRE&gt;&lt;P&gt;The exception message is (by the way, also met the bug 82311, and 82561, and have tried to workaround following the release instruction.&lt;/P&gt;&lt;PRE&gt;INFO: Upgrading database schema INFO: Return code from schema upgrade command, retcode = 1 ERROR: Error executing schema upgrade, please check the server logs. ERROR: Error output from schema upgrade command: ERROR: Exception in thread "main" org.apache.ambari.server.AmbariException: Guice provision errors: 1) Error injecting constructor, org.apache.ambari.server.AmbariException: Unable to parse stack upgrade file at location: /var/lib/ambari-server/resources/stacks/HDF/2.0/upgrades/nonrolling-upgrade-2.0.xml at org.apache.ambari.server.stack.StackManager.&amp;lt;init&amp;gt;(StackManager.java:144) while locating org.apache.ambari.server.stack.StackManager annotated with interface com.google.inject.assistedinject.Assisted at org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:261) at org.apache.ambari.server.api.services.AmbariMetaInfo.class(AmbariMetaInfo.java:135)
&lt;/PRE&gt;&lt;P&gt;and,&lt;/P&gt;&lt;PRE&gt;[org.xml.sax.SAXParseException; systemId: file:/var/lib/ambari-server/resources/stacks/HDF/2.0/upgrades/nonrolling-upgrade-2.0.xml; lineNumber: 24; columnNumber: 22; cvc-complex-type.2.4.a: Invalid content was found starting with element 'downgrade-allowed'. One of '{upgrade-path, order}' is expected.] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)&lt;/PRE&gt;&lt;P&gt;I've checked the content of /var/lib/ambari-server/resources/stacks/HDF/2.0/upgrades/nonrolling-upgrade-2.0.xml,&lt;/P&gt;&lt;P&gt;lineNumber:24&lt;/P&gt;&lt;PRE&gt;&amp;lt;downgrade-allowed&amp;gt;false&amp;lt;/downgrade-allowed&amp;gt;&lt;/PRE&gt;&lt;P&gt;btw, attached the file for troubleshooting.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/16696-nonrolling-upgrade-20.xml" target="_blank"&gt;nonrolling-upgrade-20.xml&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/16697-nonrolling-upgrade-20.xml" target="_blank"&gt;nonrolling-upgrade-20.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:53:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-when-upgrade-HDF2-1-2-to-HDF3-0/m-p/231499#M64392</guid>
      <dc:creator>liuruibnu</dc:creator>
      <dc:date>2022-09-16T11:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when upgrade HDF2.1.2 to HDF3.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-when-upgrade-HDF2-1-2-to-HDF3-0/m-p/231500#M64393</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/106214/hdf-cluster-implementation-error.html#" rel="nofollow noopener noreferrer" target="_blank"&gt;@Rachel Rui Liu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You are getting parsing error:&lt;/P&gt;&lt;PRE&gt;[org.xml.sax.SAXParseException; systemId: file:/var/lib/ambari-server/resources/stacks/HDF/2.0/upgrades/nonrolling-upgrade-2.0.xml; lineNumber: 24; columnNumber: 22; cvc-complex-type.2.4.a: Invalid content was found starting with element 'downgrade-allowed'. One of '{upgrade-path, order}' is expected.] at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)&lt;/PRE&gt;&lt;P&gt;Above is basically a parsing error.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;So to verify the XML "/var/lib/ambari-server/resources/stacks/HDF/2.0/upgrades/nonrolling-upgrade-2.0.xml" OR "/var/lib/ambari-server/resources/stacks/HDF/2.0/upgrades/nonrolling-upgrade-2.1.xml" please do the following:&lt;/P&gt;&lt;P&gt;1. Open the Online XML Parsing URL: &lt;/P&gt;&lt;PRE&gt;&lt;A href="http://www.utilities-online.info/xsdvalidation/#.WVxX39OGPx4" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.utilities-online.info/xsdvalidation/#.WVxX39OGPx4&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;
2. Now Paste your XML File "/var/lib/ambari-server/resources/stacks/HDF/2.0/upgrades/nonrolling-upgrade-2.0.xml" OR "/var/lib/ambari-server/resources/stacks/HDF/2.0/upgrades/nonrolling-upgrade-2.1.xml" content there.&lt;/P&gt;&lt;P&gt;3. Ambari validates the amove XML file using the XSD present here:
&lt;A href="https://github.com/apache/ambari/blob/release-2.5.1/ambari-server/src/main/resources/upgrade-pack.xsd#L420-L424" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/apache/ambari/blob/release-2.5.1/ambari-server/src/main/resources/upgrade-pack.xsd#L420-L424&lt;/A&gt;&lt;/P&gt;&lt;P&gt;4. So copy the XSD content and then paste it in the XSD section of the &lt;A href="http://www.utilities-online.info/xsdvalidation/#.WVxX39OGPx4" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.utilities-online.info/xsdvalidation/#.WVxX39OGPx4&lt;/A&gt;  link and then click on  "Validate XML against XSD" button and then see the error if your XML is valid or not?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:  Here i am trying to validate "&lt;/STRONG&gt;&lt;STRONG&gt;hdf-ambari-mpack-2.1.2.0-10.tar.gz" based XML file '&lt;/STRONG&gt;nonrolling-upgrade*.xml' against Ambari 2.5 XSD.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="18384-parsing-error.png" style="width: 1676px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14940i66BFE35A2A1DAF98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="18384-parsing-error.png" alt="18384-parsing-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This error may occur when you try to apply old "hdf-ambari-mpack"  (i see you are using hdf-ambari-mpack-2.1.2.0-10.tar.gz), Please try the latest mpack "&lt;/STRONG&gt;hdf-ambari-mpack-3.0.0.0-453.tar.gz".&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://public-repo-1.hortonworks.com/HDF/centos7/3.x/updates/3.0.0.0/tars/hdf_ambari_mp/hdf-ambari-mpack-3.0.0.0-453.tar.gz" target="_blank" rel="nofollow noopener noreferrer"&gt;http://public-repo-1.hortonworks.com/HDF/centos7/3.x/updates/3.0.0.0/tars/hdf_ambari_mp/hdf-ambari-mpack-3.0.0.0-453.tar.gz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.0.0/bk_release-notes/content/ch_hdf_relnotes.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.0.0/bk_release-notes/content/ch_hdf_relnotes.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;As you are upgrading from HDF 2.1 ro HDF3.0 so suspecting that you might have not used the correct mpack tar of &lt;STRONG&gt;"&lt;/STRONG&gt;hdf-ambari-mpack-3.0.0.0-453.tar.gz" please double check the same and compare the XML difference on your local filesystem to find out if by any chance the  "nonrolling-upgrade-2.1.xml"  is not from old version.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 00:37:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-when-upgrade-HDF2-1-2-to-HDF3-0/m-p/231500#M64393</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-08-18T00:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when upgrade HDF2.1.2 to HDF3.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-when-upgrade-HDF2-1-2-to-HDF3-0/m-p/231501#M64394</link>
      <description>&lt;P&gt;- I see similar post here: &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/106214/hdf-cluster-implementation-error.html#answer-111777"&gt;https://community.hortonworks.com/questions/106214/hdf-cluster-implementation-error.html#answer-111777&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 16:35:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-when-upgrade-HDF2-1-2-to-HDF3-0/m-p/231501#M64394</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-06T16:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when upgrade HDF2.1.2 to HDF3.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-when-upgrade-HDF2-1-2-to-HDF3-0/m-p/231502#M64395</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks very much Jay, you are right.&lt;/P&gt;&lt;P&gt;Because the steps changed a little bit compared to the previous version. I was wondering why I do not need to upgrade the mpack for this version (thought it was merged in ambari-server upgrade step). Then following your reply  I found this step is mandatory but in the seperate link before even backup step.&lt;/P&gt;&lt;P&gt;After re-run mpack upgrade step everything works fine for me.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 16:56:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-when-upgrade-HDF2-1-2-to-HDF3-0/m-p/231502#M64395</guid>
      <dc:creator>liuruibnu</dc:creator>
      <dc:date>2017-07-06T16:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue when upgrade HDF2.1.2 to HDF3.0</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-when-upgrade-HDF2-1-2-to-HDF3-0/m-p/231503#M64396</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19411/liuruibnu.html" nodeid="19411"&gt;@Rachel Rui Liu
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Good to know that you are able to run the mpack upgrade file now, Without any issue. If you are not facing any issue now then can you please mark this thread as answered by clicking on the "Accept" link.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19411/liuruibnu.html" nodeid="19411"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 17:05:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-when-upgrade-HDF2-1-2-to-HDF3-0/m-p/231503#M64396</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-06T17:05:30Z</dc:date>
    </item>
  </channel>
</rss>

