<?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 How to restart/refresh client config on all the hosts using Ambari API in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-restart-refresh-client-config-on-all-the-hosts-using/m-p/277334#M207523</link>
    <description>&lt;P&gt;Below article shows how to restart clients on Specific host.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Restarting+host+components+via+the+API" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Restarting+host+components+via+the+API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there any way we can perform the same on all the hosts in the cluster at one time.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2019 08:40:26 GMT</pubDate>
    <dc:creator>shyamshaw</dc:creator>
    <dc:date>2019-09-16T08:40:26Z</dc:date>
    <item>
      <title>How to restart/refresh client config on all the hosts using Ambari API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-restart-refresh-client-config-on-all-the-hosts-using/m-p/277334#M207523</link>
      <description>&lt;P&gt;Below article shows how to restart clients on Specific host.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Restarting+host+components+via+the+API" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Restarting+host+components+via+the+API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there any way we can perform the same on all the hosts in the cluster at one time.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 08:40:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-restart-refresh-client-config-on-all-the-hosts-using/m-p/277334#M207523</guid>
      <dc:creator>shyamshaw</dc:creator>
      <dc:date>2019-09-16T08:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to restart/refresh client config on all the hosts using Ambari API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-restart-refresh-client-config-on-all-the-hosts-using/m-p/277337#M207526</link>
      <description>&lt;P&gt;I was able to figure out with the help of below community article.&lt;BR /&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/How-to-install-all-clients-on-all-nodes-in-your-cluster/ta-p/246821" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/How-to-install-all-clients-on-all-nodes-in-your-&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/How-to-install-all-clients-on-all-nodes-in-your-cluster/ta-p/246821" target="_blank"&gt;cluster/ta-p/246821&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;script.sh
---------
curl -s -u admin:admin http://ambari:8080/api/v1/hosts|grep host_name|sed -n 's/.*"host_name" : "\([^\"]*\)".*/\1/p'&amp;gt;hostcluster.txt
while read line ;
do
j=$line
mkdir -p $j
curl -s -u admin:admin -H "X-Requested-By:ambari" -i -X PUT -d '{"RequestInfo":{"context":"Restart HDFS Client","operation_level":{"level":"HOST_COMPONENT","cluster_name":"rest","host_name":"$j","service_name":"HDFS"}},"Body":{"HostRoles":{"state":"INSTALLED"}}}' http://ambari:8080/api/v1/clusters/rest/hosts/$j/host_components/HDFS_CLIENT
done &amp;lt; hostcluster.txt&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 11:00:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-restart-refresh-client-config-on-all-the-hosts-using/m-p/277337#M207526</guid>
      <dc:creator>shyamshaw</dc:creator>
      <dc:date>2019-09-16T11:00:37Z</dc:date>
    </item>
  </channel>
</rss>

