<?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: Ambari admin stack versions hangs in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108771#M71624</link>
    <description>&lt;P&gt;I found that there was problem in repo_version table, version column value should be "2.5.0.0-1245". I had only "2.5.0.0"&lt;/P&gt;&lt;P&gt;Beacuse of that all services failed start or restart, with this error:&lt;/P&gt;&lt;P&gt;ambari-python-wrap /usr/bin/conf-select set-conf-dir --package hadoop --stack-version 2.5.0.0 --conf-version 0' returned 1. 2.5.0.0 Incorrect stack version&lt;/P&gt;&lt;P&gt;I still don't know how this situation happend.&lt;/P&gt;&lt;P&gt;I updated version column to "2.5.0.0-1245" in database repo_version table&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2017 16:09:29 GMT</pubDate>
    <dc:creator>indrek_maestu</dc:creator>
    <dc:date>2017-01-04T16:09:29Z</dc:date>
    <item>
      <title>Ambari admin stack versions hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108760#M71613</link>
      <description>&lt;P&gt;We recently upgraded HDP from 2.3 to 2.5 (1245) Ambari version 2.4.1.0.&lt;/P&gt;&lt;P&gt;Also today we tried install zeppelin, which failed.&lt;/P&gt;&lt;P&gt;Probably some data in database is now inconsistent&lt;/P&gt;&lt;P&gt;Ambari server log error is in attachment&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 18:02:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108760#M71613</guid>
      <dc:creator>indrek_maestu</dc:creator>
      <dc:date>2017-01-03T18:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari admin stack versions hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108761#M71614</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12845/indrekmaestu.html" nodeid="12845"&gt;@Indrek Mäestu&lt;/A&gt;&lt;P&gt;Can you try rnabling developer tools from browser and check the url its hitting/hang asking for?&lt;/P&gt;&lt;P&gt;Also i do not see attachment. Can you please verify once.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 18:04:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108761#M71614</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2017-01-03T18:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari admin stack versions hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108762#M71615</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10999-ambari-serverlog.txt"&gt;ambari-serverlog.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10999-ambari-serverlog.txt"&gt;&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11000-slider-client-installlog.txt"&gt;slider-client-installlog.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 18:07:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108762#M71615</guid>
      <dc:creator>indrek_maestu</dc:creator>
      <dc:date>2017-01-03T18:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari admin stack versions hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108763#M71616</link>
      <description>&lt;P&gt;should be visible all logs now.&lt;/P&gt;&lt;P&gt;also browser dev tools output screenshot&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11012-ambari-stacks.png"&gt;ambari-stacks.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 18:20:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108763#M71616</guid>
      <dc:creator>indrek_maestu</dc:creator>
      <dc:date>2017-01-03T18:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari admin stack versions hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108764#M71617</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12845/indrekmaestu.html" nodeid="12845"&gt;@Indrek Mäestu&lt;/A&gt;&lt;P&gt;In addition to providing information asked above by &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;, can you please check the output for stack version API call. Example stated below:&lt;/P&gt;&lt;PRE&gt;{
  "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/stack_versions?ClusterStackVersions/version=2.5&amp;amp;fields=ClusterStackVersions/state",
  "items" : [
    {
      "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/stack_versions/1",
      "ClusterStackVersions" : {
        "cluster_name" : "c1",
        "id" : 1,
        "repository_version" : 1,
        "stack" : "HDP",
        "state" : "CURRENT",
        "version" : "2.5"
      }
    }
  ]
}


&lt;/PRE&gt;&lt;P&gt;Please verify that the state should be &lt;STRONG&gt;CURRENT. &lt;/STRONG&gt;If it is not then some host is yet not publishing it's version as HDP-2.5 which can cause this issue of Admin stack version to hang&lt;/P&gt;&lt;P&gt;If that's the case then you can identify the hosts that are not publishing their versions as 2.5 by following API call:&lt;/P&gt;&lt;P&gt;&lt;A href="http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/stack_versions?ClusterStackVersions/version=2.5&amp;amp;fields=ClusterStackVersions/*" target="_blank"&gt;http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/stack_versions?ClusterStackVersions/version=2.5&amp;amp;fields=ClusterStackVersions/*&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if this is not the case then we need to look at browser's devtool console for any JS error (highlights in red color) and network tab to debug this issue further.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 18:22:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108764#M71617</guid>
      <dc:creator>jaimin</dc:creator>
      <dc:date>2017-01-03T18:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari admin stack versions hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108765#M71618</link>
      <description>&lt;P&gt;it error 500 and ambari server log contains same errors (see attachment above) &lt;/P&gt;&lt;P&gt;curl -u admin -H 'X-Requested-By:admin' -X GET 'http://localhost:8080/api/v1/clusters/Prelive/stack_versions?ClusterStackVersions/version=2.5&amp;amp;fields=ClusterStackVersions/state' &lt;/P&gt;&lt;P&gt;{ &lt;/P&gt;&lt;P&gt;  "status": 500, &lt;/P&gt;&lt;P&gt;  "message": "Server Error" &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 18:34:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108765#M71618</guid>
      <dc:creator>indrek_maestu</dc:creator>
      <dc:date>2017-01-03T18:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari admin stack versions hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108766#M71619</link>
      <description>&lt;P&gt;As per the error in the attached ambari-server log, it seems to be the case of multiple registered repo versions with same stack name and version. can you verify if thats indeed the case by running following API and checking that there are more than one entry with same stack name (HDP) and version (2.5). &lt;/P&gt;&lt;P&gt;&lt;A href="http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/stack_versions"&gt;http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/stack_versions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;please comment the output of above API. If it also gives 500 server error then please check in ambari database for following columns of repo_version table if there are any duplicates for composite of stack_id and version.This can be done by executing below query:&lt;/P&gt;&lt;P&gt;select repo_version_id,stack_id,version,display_name from repo_version;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 18:51:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108766#M71619</guid>
      <dc:creator>jaimin</dc:creator>
      <dc:date>2017-01-03T18:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari admin stack versions hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108767#M71620</link>
      <description>&lt;P&gt;Yes error 500 in API output&lt;/P&gt;&lt;P&gt;curl -u admin -H 'X-Requested-By:admin' -X GET 'http://localhost:8080/api/v1/clusters/Prelive/stack_versions' &lt;/P&gt;&lt;P&gt;{ &lt;/P&gt;&lt;P&gt;  "status": 500, &lt;/P&gt;&lt;P&gt;  "message": "Server Error" &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;sql query output in here &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/11013-ambari-repo-version.png"&gt;ambari-repo-version.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is it safe to delete 2nd row from database (repo_version_id 201)? &lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 19:57:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108767#M71620</guid>
      <dc:creator>indrek_maestu</dc:creator>
      <dc:date>2017-01-03T19:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari admin stack versions hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108768#M71621</link>
      <description>&lt;P&gt;it isn't safe to delete, because at least cluster_version and host_version tables referencing to repo_version_id. &lt;/P&gt;&lt;P&gt;I don't know how this situation can happen anyway (see ambari-repo-version.png) where data in table repo_version don't match&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 20:24:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108768#M71621</guid>
      <dc:creator>indrek_maestu</dc:creator>
      <dc:date>2017-01-03T20:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari admin stack versions hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108769#M71622</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12845/indrekmaestu.html" nodeid="12845"&gt;@Indrek Mäestu&lt;/A&gt;&lt;P&gt;Please take a backup of your db before doing any further database operations and also confirm that the cluster is on 2.5.0.0-1245 version for HDP-2.5.0.0 stack. This can be done by executing following query and getting same result as printed below:&lt;/P&gt;&lt;PRE&gt;ambari=&amp;gt; select cluster_version.state,repo_version.version,repo_version.display_name from cluster_version full outer join repo_version on cluster_version.repo_version_id=repo_version.repo_version_id  where cluster_version.state='CURRENT' ORDER BY repo_version.version;
  state  |   version    | display_name
---------+--------------+--------------
 CURRENT | 2.5.0.0-1245 | HDP-2.5.0.0
(1 row)
&lt;/PRE&gt;&lt;P&gt;Also you can check same for host version table to see that all hosts are in 'CURRENT' state and on version 2.5.0.0-1245 for HDP-2.5.0.0 stack.&lt;/P&gt;&lt;PRE&gt;ambari=&amp;gt; select host_version.host_id,host_version.state,repo_version.version,repo_version.display_name from host_version full outer join repo_version on host_version.repo_version_id=repo_version.repo_version_id  ORDER BY repo_version.version;
 host_id |  state  |   version    | display_name
---------+---------+--------------+--------------
       1 | CURRENT | 2.5.0.0-1245 | HDP-2.5.0.0
(1 row)
&lt;/PRE&gt;&lt;P&gt;I believe it should be safe to do cacading delete operation if all hosts and the cluster are on the latest version. But it will be good if Nate Cole who has more context to this part of ambari code can confirm and comment that deleting a row is the best course of action that can be done from here.&lt;/P&gt;&lt;P&gt;cc &lt;A rel="user" href="https://community.cloudera.com/users/414/ncole.html" nodeid="414"&gt;@Nate&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 04:05:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108769#M71622</guid>
      <dc:creator>jaimin</dc:creator>
      <dc:date>2017-01-04T04:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari admin stack versions hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108770#M71623</link>
      <description>&lt;P&gt;As &lt;A rel="user" href="https://community.cloudera.com/users/465/jaimin.html" nodeid="465"&gt;@jaimin&lt;/A&gt; indicated, it is safe to cascade delete the offending record.  At the end of the day, the repository_version_id values should be singular across the cluster_version and host_version tables.  Since you will have two records with the same version string, the id-lookup is what matters.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 04:24:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108770#M71623</guid>
      <dc:creator>ncole</dc:creator>
      <dc:date>2017-01-04T04:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari admin stack versions hangs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108771#M71624</link>
      <description>&lt;P&gt;I found that there was problem in repo_version table, version column value should be "2.5.0.0-1245". I had only "2.5.0.0"&lt;/P&gt;&lt;P&gt;Beacuse of that all services failed start or restart, with this error:&lt;/P&gt;&lt;P&gt;ambari-python-wrap /usr/bin/conf-select set-conf-dir --package hadoop --stack-version 2.5.0.0 --conf-version 0' returned 1. 2.5.0.0 Incorrect stack version&lt;/P&gt;&lt;P&gt;I still don't know how this situation happend.&lt;/P&gt;&lt;P&gt;I updated version column to "2.5.0.0-1245" in database repo_version table&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 16:09:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-admin-stack-versions-hangs/m-p/108771#M71624</guid>
      <dc:creator>indrek_maestu</dc:creator>
      <dc:date>2017-01-04T16:09:29Z</dc:date>
    </item>
  </channel>
</rss>

