<?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 REST API + how to verify if specific service required restart in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289012#M213979</link>
    <description>&lt;P&gt;Dear Shelton ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy your vacation , and be careful from the corona -:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2020 19:23:49 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2020-02-03T19:23:49Z</dc:date>
    <item>
      <title>AMBARI REST API + how to verify if specific service required restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/288993#M213966</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to verify if specific service required restart?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example - &lt;STRONG&gt;HDFS&lt;/STRONG&gt; service&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in case HDFS service required restart then ambari will show this as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26266iCF13411619BBE5BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it possible by rest api to understand if service required restart or not?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example for - YARN / HIVE , etc&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 15:15:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/288993#M213966</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-02-03T15:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: AMBARI REST API + how to verify if specific service required restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/288995#M213967</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you need to continue here:-&lt;/P&gt;&lt;P&gt;&lt;A title="Your old post as same" href="https://community.cloudera.com/t5/Support-Questions/how-to-know-if-any-service-in-ambari-cluster-need-to-restart/td-p/228707" target="_self"&gt;https://community.cloudera.com/t5/Support-Questions/how-to-know-if-any-service-in-ambari-cluster-need-to-restart/td-p/228707&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;HadoopHelp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 15:17:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/288995#M213967</guid>
      <dc:creator>HadoopHelp</dc:creator>
      <dc:date>2020-02-03T15:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: AMBARI REST API + how to verify if specific service required restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/288997#M213968</link>
      <description>&lt;P&gt;&lt;U&gt;but I am asking diff&lt;/U&gt; , we want API that ask about specific service as HDFS or YARN , etc&amp;nbsp;&lt;/P&gt;&lt;P&gt;this post that you mentioned ( &lt;A title="Your old post as same" href="https://community.cloudera.com/t5/Support-Questions/how-to-know-if-any-service-in-ambari-cluster-need-to-restart/td-p/228707" target="_self"&gt;https://community.cloudera.com/t5/Support-Questions/how-to-know-if-any-service-in-ambari-cluster-nee...&lt;/A&gt;&amp;nbsp;) is about all services that required restart&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;note&amp;nbsp; -&amp;nbsp; what we want is API that ask the specific service if required restart or not&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 15:30:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/288997#M213968</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-02-03T15:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: AMBARI REST API + how to verify if specific service required restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289005#M213973</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you run the below it should give the desired response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -u admin:admin -H "X-Requested-By:ambari" -X GET "http://&amp;lt;ambari-server&amp;gt;:&amp;lt;port&amp;gt;/api/v1/clusters/&amp;lt;clustername&amp;gt;/host_components?HostRoles/stale_configs=false&amp;amp;fields=HostRoles/service_name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 16:36:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289005#M213973</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2020-02-03T16:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: AMBARI REST API + how to verify if specific service required restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289009#M213976</link>
      <description>&lt;P&gt;I get A long list of all services , , any way not see there the HDFS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but what we want is to verify only specific one service&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 17:48:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289009#M213976</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-02-03T17:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: AMBARI REST API + how to verify if specific service required restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289011#M213978</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will not have access&amp;nbsp; to my environment&amp;nbsp; for 4 days as I am traveling but&amp;nbsp; I think you can filter using&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;service_name=HDFS&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I need to test that but that's the way&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 19:08:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289011#M213978</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2020-02-03T19:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: AMBARI REST API + how to verify if specific service required restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289012#M213979</link>
      <description>&lt;P&gt;Dear Shelton ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy your vacation , and be careful from the corona -:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 19:23:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289012#M213979</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-02-03T19:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: AMBARI REST API + how to verify if specific service required restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289013#M213980</link>
      <description>&lt;P&gt;any way just for your information we get that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -u admin:admin -H "X-Requested-By:ambari" -X GET "http://master_node:8080/api/v1/clusters/HDP/host_components?HostRoles/stale_configs=false&amp;amp;fields=HostRoles/service_name=HDFS"&lt;BR /&gt;{&lt;BR /&gt;"status" : 400,&lt;BR /&gt;"message" : "Unable to compile query predicate: Invalid Query Token: token='=', previous token type=VALUE_OPERAND"&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 19:32:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289013#M213980</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-02-03T19:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: AMBARI REST API + how to verify if specific service required restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289017#M213983</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/59349"&gt;@mike_bronson7&lt;/a&gt;&lt;/P&gt;&lt;P&gt;If you just want to find out specific services like HDFS / HIVE /SPARK2 to know whether they require restart or not then you can do this using filtering option &lt;EM&gt;&lt;STRONG&gt;service_name.in(xxx,yyy,zzz)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# curl -u admin:admin -H "X-Requested-By: ambari" -X GET "ttp://kerlatest1.example.com:8080/api/v1/clusters/KerLatest/host_components?HostRoles/stale_configs=true&amp;amp;HostRoles/service_name.in(HIVE,HDFS,SPARK2)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Various Options to get Stale Config Component/Service details.&lt;/STRONG&gt;&lt;BR /&gt;Similarly there are few other variants of the API call to find out and list the Services/Individual components which require restart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# curl -u admin:admin -H "X-Requested-By: ambari" -X GET  "ttp://kerlatest1.example.com:8080/api/v1/clusters/KerLatest/host_components?HostRoles/stale_configs=true&amp;amp;fields=HostRoles/service_name,HostRoles/host_name"

# curl -u admin:admin -H "X-Requested-By: ambari" -X GET "ttp://kerlatest1.example.com:8080/api/v1/clusters/KerLatest/host_components?HostRoles/stale_configs=true"

# curl -u admin:admin -H "X-Requested-By: ambari" -X GET "ttp://kerlatest1.example.com:8080/api/v1/clusters/KerLatest/host_components?HostRoles/stale_configs=true&amp;amp;fields=HostRoles/service_name"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;How to restart All Stale Configurations using API call.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# curl -u admin:admin -H "X-Requested-By: ambari" -X POST -d  '{"RequestInfo":{"command":"RESTART","context":"Restart all required services","operation_level":"host_component"},"Requests/resource_filters":[{"hosts_predicate":"HostRoles/stale_configs=true"}]}' "ttp://kerlatest1.example.com:8080/api/v1/clusters/KerLatest/requests"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;.&lt;/P&gt;&lt;P&gt;Please change the Ambari Hostname/port and Cluster name in the above API calls.&lt;BR /&gt;I have changed "http://" to "ttp://"&amp;nbsp; Please correct that protocol prefix before using the above mentioned API calls.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 21:00:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289017#M213983</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2020-02-03T21:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: AMBARI REST API + how to verify if specific service required restart</title>
      <link>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289020#M213986</link>
      <description>&lt;P&gt;Dear Jay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what to say&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;excellent answer , you are really one of the best here&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 21:28:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/AMBARI-REST-API-how-to-verify-if-specific-service-required/m-p/289020#M213986</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2020-02-03T21:28:37Z</dc:date>
    </item>
  </channel>
</rss>

