<?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 add new service stuck in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174929#M137192</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2338/robindong2000.html" nodeid="2338"&gt;@Robin Dong&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like one of your host is causing the problem.&lt;/P&gt;&lt;P&gt;Please check the following:&lt;/P&gt;&lt;P&gt;1). Check the "host_version" table and findout which host is not pointing to "2.5.3.0-37"&lt;/P&gt;&lt;PRE&gt;SELECT * FROM host_version;&lt;/PRE&gt;&lt;P&gt;2). Login to the problematic host using SSH  and then run the following command to find out if it really has the 2.5.3.0-37 packages installed or not?&lt;/P&gt;&lt;PRE&gt;# hdp-select&lt;/PRE&gt;&lt;P&gt;3). If you see that the hdp-select command output shows that all the packages installed to that host is having the correct version then following the next step.&lt;/P&gt;&lt;P&gt;4). If you find the problematic host then find it's host_id from the "hosts" table and then check if it is pointing to OLD repo_version_id , if yes then update it to point to the current version.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt; UPDATE host_version SET state='CURRENT' WHERE host_id='xx';
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also you can update the "repo_version_id" for this host to point to the latest version of repo (if it is not set already) &lt;/P&gt;&lt;P&gt;Please make sure that after this change the host is pointing to  the  &lt;STRONG&gt;repo_version_id&lt;/STRONG&gt; mentioned in the &lt;STRONG&gt;"cluster_version"&lt;/STRONG&gt; table which has state as "&lt;STRONG&gt;CURRENT&lt;/STRONG&gt;".
.&lt;/P&gt;&lt;P&gt;5). After the DB changes (commits) ambari-server need to be restarted.&lt;/P&gt;&lt;PRE&gt;# ambari-server restart
&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2017 09:37:29 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-07-04T09:37:29Z</dc:date>
    <item>
      <title>ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174920#M137183</link>
      <description>&lt;P&gt;Hi, I just installed a new HDP 2.5.3.0 cluster with 10 nodes, when I tried to 'add new service' it is in 'Loading....' and get no where. &lt;/P&gt;&lt;P&gt;this is first time to my cluster, I have installed so many, never have this problem. I did all ambari-server restart, stop all service and start all service, also, chown root:root /var/run/ambari still not let me add new service. &lt;/P&gt;&lt;P&gt;anyone have any ideas to help me here? thank you very much.&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 07:47:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174920#M137183</guid>
      <dc:creator>robi</dc:creator>
      <dc:date>2017-07-04T07:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174921#M137184</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2338/robindong2000.html" nodeid="2338"&gt;@Robin Dong&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Did you notice any warning/error in ambari-server.log? (before or after the UI hung). &lt;/P&gt;&lt;P&gt;The OS where the Ambari is running has enough memory (free -m).  Also does ambari has enough Free space left.   Following command will list the ambari memory details in run time.&lt;/P&gt;&lt;PRE&gt;# $JAVA_HOME/bin/jmap -heap  $AMBARI_PID&lt;/PRE&gt;&lt;P&gt;Did you try opening the ambari UI in incognito mode browser?&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 07:49:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174921#M137184</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-04T07:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174922#M137185</link>
      <description>&lt;P&gt;thank you so much for your respond.&lt;/P&gt;&lt;P&gt;ambari-server.log showed this error:  error=/var/run/ambari-server/stack-recommendations/1/stackadvisor.err&lt;/P&gt;&lt;P&gt;[root@ip-172-31-6-79 bin]# free -m &lt;/P&gt;&lt;P&gt;           total     used    free      shared   buff/cache   available &lt;/P&gt;&lt;P&gt;Mem:           7565    1478    119    48           5967        5714 &lt;/P&gt;&lt;P&gt;Swap:             0           0           0&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 08:28:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174922#M137185</guid>
      <dc:creator>robi</dc:creator>
      <dc:date>2017-07-04T08:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174923#M137186</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2338/robindong2000.html" nodeid="2338"&gt;@Robin Dong&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sometimes this Add Service UI can get hung when some of the Hosts of the cluster are in OUT_OF_SYNC state.&lt;/P&gt;&lt;P&gt;Please check the ambari DB to findout those host states.
&lt;/P&gt;&lt;PRE&gt;SELECT host_id, state FROM host_version WHERE state = "OUT_OF_SYNC";

SELECT host_id, host_name FROM hosts where host_id IN (SELECT host_id FROM host_version WHERE state = "OUT_OF_SYNC");&lt;/PRE&gt;&lt;P&gt;If you find any problematic host then please Enable the&lt;STRONG&gt; "Maintenance Mode" ON&lt;/STRONG&gt;  for those hosts first and then perform Add Service.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 08:45:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174923#M137186</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-04T08:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174924#M137187</link>
      <description>&lt;P&gt;Please refer to this image of the current version 6/7, seemed one of my host has issues, but how to fix it?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 08:51:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174924#M137187</guid>
      <dc:creator>robi</dc:creator>
      <dc:date>2017-07-04T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174925#M137188</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2338/robindong2000.html" nodeid="2338"&gt;@Robin Dong&lt;/A&gt; Please attache the images. &lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 08:56:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174925#M137188</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-04T08:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174926#M137189</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/17654-703-version.png"&gt;703-version.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;sorry, somehow it not uploaded last time. here it comes. please see current 6/7, one of my host do have issues, but I could not find any alert in any hosts in the cluster.&lt;/P&gt;&lt;P&gt;I dont know how to query on ambari database, I did hdp-select, it is hard to compare the versions on each states on all hosts.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:20:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174926#M137189</guid>
      <dc:creator>robi</dc:creator>
      <dc:date>2017-07-04T09:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174927#M137190</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/17655-703-version.png"&gt;703-version.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;please see the 'current 6/7', it means one of my hosts have issues, but I could not find any alert in my cluster and only warning in deploy.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:22:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174927#M137190</guid>
      <dc:creator>robi</dc:creator>
      <dc:date>2017-07-04T09:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174928#M137191</link>
      <description>&lt;P&gt;I saw your ealier post&lt;/P&gt;&lt;PRE&gt;# mysql -u ambari ambari -pbigdata 

mysql&amp;gt; SELECT host_id, state FROM host_version WHERE state = "OUT_OF_SYNC";
[root@ip-172-31-6-79 bin]# mysql
bash: mysql: command not found


&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:29:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174928#M137191</guid>
      <dc:creator>robi</dc:creator>
      <dc:date>2017-07-04T09:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174929#M137192</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2338/robindong2000.html" nodeid="2338"&gt;@Robin Dong&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like one of your host is causing the problem.&lt;/P&gt;&lt;P&gt;Please check the following:&lt;/P&gt;&lt;P&gt;1). Check the "host_version" table and findout which host is not pointing to "2.5.3.0-37"&lt;/P&gt;&lt;PRE&gt;SELECT * FROM host_version;&lt;/PRE&gt;&lt;P&gt;2). Login to the problematic host using SSH  and then run the following command to find out if it really has the 2.5.3.0-37 packages installed or not?&lt;/P&gt;&lt;PRE&gt;# hdp-select&lt;/PRE&gt;&lt;P&gt;3). If you see that the hdp-select command output shows that all the packages installed to that host is having the correct version then following the next step.&lt;/P&gt;&lt;P&gt;4). If you find the problematic host then find it's host_id from the "hosts" table and then check if it is pointing to OLD repo_version_id , if yes then update it to point to the current version.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt; UPDATE host_version SET state='CURRENT' WHERE host_id='xx';
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Also you can update the "repo_version_id" for this host to point to the latest version of repo (if it is not set already) &lt;/P&gt;&lt;P&gt;Please make sure that after this change the host is pointing to  the  &lt;STRONG&gt;repo_version_id&lt;/STRONG&gt; mentioned in the &lt;STRONG&gt;"cluster_version"&lt;/STRONG&gt; table which has state as "&lt;STRONG&gt;CURRENT&lt;/STRONG&gt;".
.&lt;/P&gt;&lt;P&gt;5). After the DB changes (commits) ambari-server need to be restarted.&lt;/P&gt;&lt;PRE&gt;# ambari-server restart
&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:37:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174929#M137192</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-04T09:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174930#M137193</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2338/robindong2000.html" nodeid="2338"&gt;@Robin Dong
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You will need to have "mysql" client packages installed on the host where you are running this command:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# yum install mysql-community-client&lt;/PRE&gt;&lt;P&gt;And then you can run the following command:&lt;/P&gt;&lt;PRE&gt;# mysql -u ambari ambari -pbigdata&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2338/robindong2000.html" nodeid="2338"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:41:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174930#M137193</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-04T09:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174931#M137194</link>
      <description>&lt;P&gt;Thank you Jay. &lt;/P&gt;&lt;P&gt;1. I checked all host hdp-select, all versions are the same.&lt;/P&gt;&lt;P&gt;2. even if I find one out of sync, I dont know how to run this SELECT * FROM host_version; I guess I install oracle database for metadata, not mysql, please let me know if I am wrong.&lt;/P&gt;&lt;P&gt;I just installed one more zookeeper, it allowed me to add new service. I know it dont make sense, but that is only thing I did. &lt;/P&gt;&lt;P&gt;I think you provide all right answers. just let me know how to this query SELECT * FROM host_version;&lt;/P&gt;&lt;P&gt;thank you again.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 10:07:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174931#M137194</guid>
      <dc:creator>robi</dc:creator>
      <dc:date>2017-07-04T10:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174932#M137195</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;yum install mysql-community-client
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
No package mysql-community-client available.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 10:10:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174932#M137195</guid>
      <dc:creator>robi</dc:creator>
      <dc:date>2017-07-04T10:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: ambari add new service stuck</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174933#M137196</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2338/robindong2000.html" nodeid="2338"&gt;@Robin Dong
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can check the &lt;STRONG&gt;"/etc/ambari-server/conf/ambari.properties" &lt;/STRONG&gt;file to know exactly which DataBase your ambari is using and then accordingly you can login to the DB host and run/check the requested commands or the DB admin can assist with the queries.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example: (In my Case it is Postgres)
&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# grep 'jdbc' /etc/ambari-server/conf/ambari.properties
custom.postgres.jdbc.name=postgresql-9.3-1101-jdbc4.jar
previous.custom.postgres.jdbc.name=postgresql-9.3-1101-jdbc4.jar
server.jdbc.connection-pool=internal
server.jdbc.database=postgres
server.jdbc.database_name=ambari
server.jdbc.postgres.schema=ambari
server.jdbc.user.name=ambari
server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat
&lt;/PRE&gt;&lt;P&gt;.
&lt;A rel="user" href="https://community.cloudera.com/users/2338/robindong2000.html" nodeid="2338"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 11:15:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-add-new-service-stuck/m-p/174933#M137196</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-07-04T11:15:38Z</dc:date>
    </item>
  </channel>
</rss>

