<?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 service check VIA REST API in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/service-check-VIA-REST-API/m-p/181088#M143323</link>
    <description>&lt;P&gt;we create the follwing payload file and run the API in order to run the service check on HDFS &lt;/P&gt;&lt;P&gt;but we got &amp;lt; HTTP/1.1 404 Not Found &lt;/P&gt;&lt;P&gt;what is wrong with my syntax ?&lt;/P&gt;&lt;PRE&gt; more payload
{
   "RequestInfo":{
      "context":"HDFS Service Check",
      "command":"HDFS_SERVICE_CHECK"
   },
   "Requests/resource_filters":[
      {
         "service_name":"HDFS"
      }
   ]
}
[root@master02 ]# curl -ivk -H "X-Requested-By: ambari" -u admin:admin -X POST -d @payload &lt;A href="http://master02.sys56.com:8080/api/v1/clusters/hdp/request" target="_blank"&gt;http://master02.sys56.com:8080/api/v1/clusters/hdp/request&lt;/A&gt;
* About to connect() to master02.sys56.com port 8080 (#0)
*   Trying 92.12.3.62...
* Connected to master02.sys56.com (92.12.3.62) port 8080 (#0)
* Server auth using Basic with user 'admin'
&amp;gt; POST /api/v1/clusters/hdp/request HTTP/1.1
&amp;gt; Authorization: Basic YWRtaW46YWRtaW4=
&amp;gt; User-Agent: curl/7.29.0
&amp;gt; Host: master02.sys56.com:8080
&amp;gt; Accept: */*
&amp;gt; X-Requested-By: ambari
&amp;gt; Content-Length: 178
&amp;gt; Content-Type: application/x-www-form-urlencoded
&amp;gt;
* upload completely sent off: 178 out of 178 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=1w7c5v5ol3u4j1hgmxubwxu19r;Path=/;HttpOnly
Set-Cookie: AMBARISESSIONID=1w7c5v5ol3u4j1hgmxubwxu19r;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;
* Connection #0 to host master02.sys56.com left intact&lt;/PRE&gt;</description>
    <pubDate>Mon, 05 Mar 2018 23:20:40 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2018-03-05T23:20:40Z</dc:date>
    <item>
      <title>service check VIA REST API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/service-check-VIA-REST-API/m-p/181088#M143323</link>
      <description>&lt;P&gt;we create the follwing payload file and run the API in order to run the service check on HDFS &lt;/P&gt;&lt;P&gt;but we got &amp;lt; HTTP/1.1 404 Not Found &lt;/P&gt;&lt;P&gt;what is wrong with my syntax ?&lt;/P&gt;&lt;PRE&gt; more payload
{
   "RequestInfo":{
      "context":"HDFS Service Check",
      "command":"HDFS_SERVICE_CHECK"
   },
   "Requests/resource_filters":[
      {
         "service_name":"HDFS"
      }
   ]
}
[root@master02 ]# curl -ivk -H "X-Requested-By: ambari" -u admin:admin -X POST -d @payload &lt;A href="http://master02.sys56.com:8080/api/v1/clusters/hdp/request" target="_blank"&gt;http://master02.sys56.com:8080/api/v1/clusters/hdp/request&lt;/A&gt;
* About to connect() to master02.sys56.com port 8080 (#0)
*   Trying 92.12.3.62...
* Connected to master02.sys56.com (92.12.3.62) port 8080 (#0)
* Server auth using Basic with user 'admin'
&amp;gt; POST /api/v1/clusters/hdp/request HTTP/1.1
&amp;gt; Authorization: Basic YWRtaW46YWRtaW4=
&amp;gt; User-Agent: curl/7.29.0
&amp;gt; Host: master02.sys56.com:8080
&amp;gt; Accept: */*
&amp;gt; X-Requested-By: ambari
&amp;gt; Content-Length: 178
&amp;gt; Content-Type: application/x-www-form-urlencoded
&amp;gt;
* upload completely sent off: 178 out of 178 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=1w7c5v5ol3u4j1hgmxubwxu19r;Path=/;HttpOnly
Set-Cookie: AMBARISESSIONID=1w7c5v5ol3u4j1hgmxubwxu19r;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;
* Connection #0 to host master02.sys56.com left intact&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Mar 2018 23:20:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/service-check-VIA-REST-API/m-p/181088#M143323</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-03-05T23:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: service check VIA REST API</title>
      <link>https://community.cloudera.com/t5/Support-Questions/service-check-VIA-REST-API/m-p/181089#M143324</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;url should be "http://master02.sys56.com:8080/api/v1/clusters/hdp/requests" not "http://master02.sys56.com:8080/api/v1/clusters/hdp/request". &lt;/P&gt;&lt;P&gt;'s' is missing in requests.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 01:22:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/service-check-VIA-REST-API/m-p/181089#M143324</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-03-06T01:22:57Z</dc:date>
    </item>
  </channel>
</rss>

