<?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: API + restart the services that restart is required in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222217#M184089</link>
    <description>&lt;P&gt;I test it again , hostname for sure is ok and the cluster name is correct , what chuld be the problem &lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2017 01:26:37 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2017-08-18T01:26:37Z</dc:date>
    <item>
      <title>API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222207#M184079</link>
      <description>&lt;P&gt;after adding new parameter and value to the ambari cluster , we need to restart the service to take affect&lt;/P&gt;&lt;P&gt;from ambari GUI restart the service is required , and we can see that because restart button is colored with orange&lt;/P&gt;&lt;P&gt;so my question is&lt;/P&gt;&lt;P&gt;we need API command that restart only the services that restart is required?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 00:41:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222207#M184079</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-18T00:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222208#M184080</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please try this:&lt;/P&gt;&lt;PRE&gt;# curl -iv -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"}]}' &lt;A href="http://$AMBARI_SERVER:8080/api/v1/clusters/$CLUSTER_NAME/reques" target="_blank"&gt;http://$AMBARI_SERVER:8080/api/v1/clusters/$CLUSTER_NAME/reques&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Please replace the $AMBARI_SERVER with ambari FQDN&lt;/P&gt;&lt;P&gt;$CLUSTER_NAME = clustername.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 00:48:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222208#M184080</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-18T00:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222209#M184081</link>
      <description>&lt;P&gt;thank you very much - I will test it on my ambari cluster &lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 00:51:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222209#M184081</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-18T00:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222210#M184082</link>
      <description>&lt;P&gt;btw - regarding my previews question , how to find the config type for the parameter , can we talk about this ?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 00:53:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222210#M184082</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-18T00:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222211#M184083</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I just responded there: &lt;A href="https://community.hortonworks.com/questions/121757/how-to-find-config-type-by-api-command-1.html" target="_blank"&gt;https://community.hortonworks.com/questions/121757/how-to-find-config-type-by-api-command-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 00:59:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222211#M184083</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-18T00:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222212#M184084</link>
      <description>&lt;P&gt;from some reason I get - HTTP/1.1 404 Not Found&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:06:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222212#M184084</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-18T01:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222213#M184085</link>
      <description>&lt;P&gt;I change the hostname and the cluster name maybe something else in the syntax&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:08:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222213#M184085</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-18T01:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222214#M184086</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The "Restart all required services" feature is available from ambari 2.5 onwards only.  &lt;/P&gt;&lt;P&gt;If you are getting 404 in Ambari 2.5 then you might be doing something wrong in the URL.&lt;/P&gt;&lt;P&gt;In my case i missed  "t"   at the end of th URL. The "request"  became  "reques"  Please correct it as following:&lt;/P&gt;&lt;PRE&gt;# curl -iv -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"}]}' &lt;A href="http://$AMBARI_SERVER:8080/api/v1/clusters/$CLUSTER_NAME/request" target="_blank"&gt;http://$AMBARI_SERVER:8080/api/v1/clusters/$CLUSTER_NAME/request&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:09:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222214#M184086</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-18T01:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222215#M184087</link>
      <description>&lt;P&gt;*   Trying 109.164.35.62...
* Connected to master.urns.com (109.164.35.62) port 8080 (#0)
* Server auth using Basic with user 'admin'
&amp;gt; POST /api/v1/clusters/HDP01/request HTTP/1.1
&amp;gt; Authorization: Basic YWRtaW46YWRtaW4=
&amp;gt; User-Agent: curl/7.29.0
&amp;gt; Host: master.urns.com:8080
&amp;gt; Accept: */*
&amp;gt; X-Requested-By: ambari
&amp;gt; Content-Length: 195
&amp;gt; Content-Type: application/x-www-form-urlencoded
&amp;gt;
* upload completely sent off: 195 out of 195 bytes
&amp;lt; HTTP/1.1 404 Not Found
HTTP/1.1 404 Not Found
&amp;lt; X-Frame-Options: DENY
X-Frame-Options: DENY
&amp;lt; X-XSS-Protection: 1; mode=block
X-XSS-Protection: 1; mode=block
&amp;lt; X-Content-Type-Options: nosniff
X-Content-Type-Options: nosniff
&amp;lt; Cache-Control: no-store
Cache-Control: no-store
&amp;lt; Pragma: no-cache
Pragma: no-cache
&amp;lt; Set-Cookie: AMBARISESSIONID=1kmyjqsidore28zeh3nxu88c5;Path=/;HttpOnly
Set-Cookie: AMBARISESSIONID=1kmyjqsidore28zeh3nxu88c5;Path=/;HttpOnly
&amp;lt; Expires: Thu, 01 Jan 1970 00:00:00 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
&amp;lt; User: admin
User: admin
&amp;lt; Content-Length: 0
Content-Length: 0
&amp;lt; Server: Jetty(8.1.19.v20160209)
Server: Jetty(8.1.19.v20160209)&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:15:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222215#M184087</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-18T01:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222216#M184088</link>
      <description>&lt;P&gt;as you can see from the log hostname is ok ans the cluster name&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:21:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222216#M184088</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-18T01:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222217#M184089</link>
      <description>&lt;P&gt;I test it again , hostname for sure is ok and the cluster name is correct , what chuld be the problem &lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:26:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222217#M184089</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-18T01:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222218#M184090</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please pardon me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;The URL should end with "&lt;STRONG&gt;requests&lt;/STRONG&gt;"  instead of "&lt;STRONG&gt;request&lt;/STRONG&gt;"&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&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"}]}' &lt;A href="http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/requests" target="_blank"&gt;http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/requests&lt;/A&gt;

{
  "href" : "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/requests/132",
  "Requests" : {
    "id" : 132,
    "status" : "Accepted"
  }
}&lt;/PRE&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;P&gt;.&lt;/P&gt;&lt;/STRONG&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:28:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222218#M184090</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-18T01:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222219#M184091</link>
      <description>&lt;P&gt;now command its works , but in the ambari cluster the service hive and the service spark2 still have the button restart in orange ( so seems command works on linux ) but not refreshed the service , the target of my quastion was to restart/refreshed all services that need to be restart &lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:31:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222219#M184091</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-18T01:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222220#M184092</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Please check the progress of the request ID ... to see if it is completed or stuck:?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;curl  -u admin:admin -H "X-Requested-By: ambari" -X GET &lt;A href="http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/requests/132" target="_blank"&gt;http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/requests/132&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:32:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222220#M184092</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-18T01:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: API + restart the services that restart is required</title>
      <link>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222221#M184093</link>
      <description>&lt;P&gt;every thing is ok now thx&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:43:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/API-restart-the-services-that-restart-is-required/m-p/222221#M184093</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-18T01:43:11Z</dc:date>
    </item>
  </channel>
</rss>

