<?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: The Stacks and versions of Ambari doesn't match rpm package in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-Stacks-and-versions-of-Ambari-doesn-t-match-rpm-package/m-p/239246#M85608</link>
    <description>&lt;P&gt;	Hi &lt;A rel="user" href="https://community.cloudera.com/users/81188/lsh1995.html" nodeid="81188"&gt;@Henry Luo&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;	This will usually happen if you are using a local repository to install the HDP and ambari cannot fetch the version information from : &lt;A href="http://public-repo-1.hortonworks.com/HDP/amazonlinux2/3.x/updates/3.1.0.0/HDP-3.1.0.0-78.xml" target="_blank"&gt;http://public-repo-1.hortonworks.com/HDP/amazonlinux2/3.x/updates/3.1.0.0/HDP-3.1.0.0-78.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;	and instead it fetch's from stacks defined in /var/lib/ambari-server/resources&lt;/P&gt;&lt;P&gt;	and this HDP-3.1 is minor version of HDP-3.x the stacks defined in abouve location will be having the HDP-3.0's versions information.&lt;/P&gt;&lt;P&gt;	you can either &lt;STRONG&gt;ignore displayed versions in stacks and versions page&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;	or &lt;/P&gt;&lt;P&gt;	you can go to ambari database and edit the repo_version table using following commands&lt;/P&gt;
&lt;PRE&gt;[root@asn1 ~]# psql -U ambari ambari
Password for user ambari:
psql (9.2.24)
Type "help" for help.
ambari=&amp;gt; select version_xml from repo_version;
                                                            version_xml
-----------------------------------------------------------------------------------------------------------------------------------
 &amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;                                              
.....&amp;lt;SOME DATA&amp;gt;... '
ambari=&amp;gt; update repo_version set version_xml='&amp;lt;USE_SAME_DATA_ABOUVE_EDIT The versions of Services as per this url : http://public-repo-1.hortonworks.com/HDP/amazonlinux2/3.x/updates/3.1.0.0/HDP-3.1.0.0-78.xml&amp;gt;';
&lt;/PRE&gt;&lt;P&gt;	Please note : always take a &lt;STRONG&gt;Database backup &lt;/STRONG&gt;before any operation to ambari and stop ambari server.&lt;/P&gt;&lt;P&gt;	Default password of database if postgresql is &lt;STRONG&gt;bigdata&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;	&lt;STRONG&gt;&lt;BR /&gt;	&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;	&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV style="color:green"&gt;&lt;STRONG&gt;PS: Please accept this answer if you find it helpful &lt;/STRONG&gt;&lt;STRONG&gt;and only perform Database operations if you have prior experience or as mentioned please ignore what ambari show's in stack and versions page.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;	&lt;STRONG&gt;&lt;BR /&gt;	&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;	&lt;STRONG&gt;&lt;BR /&gt;	&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Dec 2018 22:38:42 GMT</pubDate>
    <dc:creator>akhilsnaik</dc:creator>
    <dc:date>2018-12-19T22:38:42Z</dc:date>
    <item>
      <title>The Stacks and versions of Ambari doesn't match rpm package</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-Stacks-and-versions-of-Ambari-doesn-t-match-rpm-package/m-p/239245#M85607</link>
      <description>&lt;P&gt;Hello all:&lt;/P&gt;&lt;P&gt;I'm using Ambari2.7.3.0 and HDP3.1.0.0-78 to bulid a cluster.HDP repository was build on internal network,using &lt;A href="http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0/HDP-3.1.0.0-centos7-rpm.tar.gz" target="_blank" rel="nofollow noopener noreferrer"&gt;http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0/HDP-3.1.0.0-centos7-rpm.tar.gz&lt;/A&gt; ; and Ambari was downloaded from public repository .I installed Hadoop from Ambari.&lt;/P&gt;&lt;P&gt;Here's the problem :The version of Hadoop was completely same as HDP3.0,not HDP3.1,Could anyone tell me why?&lt;/P&gt;&lt;P&gt;Such as Kafka ,version is 1.0 in HDP3.0,but 2.0 in HDP3.1,rpm package version from yum repository is 2.0,I'm confused ...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="97408-version.png" style="width: 594px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/13969i19A14890ADBD1264/image-size/medium?v=v2&amp;amp;px=400" role="button" title="97408-version.png" alt="97408-version.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="97407-stack.png" style="width: 186px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/13970i15C8F964D7084FCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="97407-stack.png" alt="97407-stack.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 22:43:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-Stacks-and-versions-of-Ambari-doesn-t-match-rpm-package/m-p/239245#M85607</guid>
      <dc:creator>lsh1995</dc:creator>
      <dc:date>2019-08-17T22:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: The Stacks and versions of Ambari doesn't match rpm package</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-Stacks-and-versions-of-Ambari-doesn-t-match-rpm-package/m-p/239246#M85608</link>
      <description>&lt;P&gt;	Hi &lt;A rel="user" href="https://community.cloudera.com/users/81188/lsh1995.html" nodeid="81188"&gt;@Henry Luo&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;	This will usually happen if you are using a local repository to install the HDP and ambari cannot fetch the version information from : &lt;A href="http://public-repo-1.hortonworks.com/HDP/amazonlinux2/3.x/updates/3.1.0.0/HDP-3.1.0.0-78.xml" target="_blank"&gt;http://public-repo-1.hortonworks.com/HDP/amazonlinux2/3.x/updates/3.1.0.0/HDP-3.1.0.0-78.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;	and instead it fetch's from stacks defined in /var/lib/ambari-server/resources&lt;/P&gt;&lt;P&gt;	and this HDP-3.1 is minor version of HDP-3.x the stacks defined in abouve location will be having the HDP-3.0's versions information.&lt;/P&gt;&lt;P&gt;	you can either &lt;STRONG&gt;ignore displayed versions in stacks and versions page&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;	or &lt;/P&gt;&lt;P&gt;	you can go to ambari database and edit the repo_version table using following commands&lt;/P&gt;
&lt;PRE&gt;[root@asn1 ~]# psql -U ambari ambari
Password for user ambari:
psql (9.2.24)
Type "help" for help.
ambari=&amp;gt; select version_xml from repo_version;
                                                            version_xml
-----------------------------------------------------------------------------------------------------------------------------------
 &amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;                                              
.....&amp;lt;SOME DATA&amp;gt;... '
ambari=&amp;gt; update repo_version set version_xml='&amp;lt;USE_SAME_DATA_ABOUVE_EDIT The versions of Services as per this url : http://public-repo-1.hortonworks.com/HDP/amazonlinux2/3.x/updates/3.1.0.0/HDP-3.1.0.0-78.xml&amp;gt;';
&lt;/PRE&gt;&lt;P&gt;	Please note : always take a &lt;STRONG&gt;Database backup &lt;/STRONG&gt;before any operation to ambari and stop ambari server.&lt;/P&gt;&lt;P&gt;	Default password of database if postgresql is &lt;STRONG&gt;bigdata&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;	&lt;STRONG&gt;&lt;BR /&gt;	&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;	&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV style="color:green"&gt;&lt;STRONG&gt;PS: Please accept this answer if you find it helpful &lt;/STRONG&gt;&lt;STRONG&gt;and only perform Database operations if you have prior experience or as mentioned please ignore what ambari show's in stack and versions page.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;	&lt;STRONG&gt;&lt;BR /&gt;	&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;	&lt;STRONG&gt;&lt;BR /&gt;	&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 22:38:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-Stacks-and-versions-of-Ambari-doesn-t-match-rpm-package/m-p/239246#M85608</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-12-19T22:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: The Stacks and versions of Ambari doesn't match rpm package</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-Stacks-and-versions-of-Ambari-doesn-t-match-rpm-package/m-p/239247#M85609</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/81188/lsh1995.html" nodeid="81188"&gt;@Henry Luo&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Can you please see if this helps you.&lt;/P&gt;&lt;P&gt;Can you please login and accept the anwer if it did. &lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 20:56:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-Stacks-and-versions-of-Ambari-doesn-t-match-rpm-package/m-p/239247#M85609</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-12-25T20:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: The Stacks and versions of Ambari doesn't match rpm package</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-Stacks-and-versions-of-Ambari-doesn-t-match-rpm-package/m-p/239248#M85610</link>
      <description>&lt;P&gt;Sorry im late &lt;/P&gt;&lt;P&gt;I followed your guide and I found the version info in table "repo_version " was same as HDP3.1,and HDP.xml and HDP-UTILS.xml in my local repositories was modified to local download url,cound you give me a little more guide?Thank you very much!!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 18:10:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-Stacks-and-versions-of-Ambari-doesn-t-match-rpm-package/m-p/239248#M85610</guid>
      <dc:creator>lsh1995</dc:creator>
      <dc:date>2018-12-26T18:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: The Stacks and versions of Ambari doesn't match rpm package</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-Stacks-and-versions-of-Ambari-doesn-t-match-rpm-package/m-p/239249#M85611</link>
      <description>&lt;P&gt;	Hey &lt;A rel="user" href="https://community.cloudera.com/users/81188/lsh1995.html" nodeid="81188"&gt;@Henry Luo&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;	As i specified earlier, we need to fetch the version_xml from repo_version table, modify it and update the table. you can use any of UI tools like PGADMIN4(if postgres UI) or can update the same using the command I mentioned above.&lt;/P&gt;&lt;P&gt;If you are not fully aware of Database operations you can ignore these wrong versions change as I explained above why its happening. &lt;/P&gt;&lt;P&gt;	Hope this helps.&lt;STRONG&gt;Please accept answer if it did.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 10:11:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/The-Stacks-and-versions-of-Ambari-doesn-t-match-rpm-package/m-p/239249#M85611</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-12-27T10:11:49Z</dc:date>
    </item>
  </channel>
</rss>

