<?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 Getting 500 status code for HBase component restart in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-500-status-code-for-HBase-component-restart/m-p/123456#M51275</link>
    <description>&lt;P&gt;Command run:&lt;/P&gt;&lt;P&gt;curl -u$userName:$passWord -H 'X-Requested-By: ambari' -X POST -d '
{
   "RequestInfo":{
      "command":"RESTART",
      "context":"Restart HBase client on HOST_NAME",
      "operation_level":{
         "level":"HOST",
         "cluster_name":CLUSTER_NAME       }
   },
   "Requests/resource_filters":[
      {
         "service_name":"HBase",
         "component_name":"HBase_Client",
         "hosts":"HOST_NAME_1"
      }
   ]
}' HOST_NAME:8080/api/v1/clusters/OlatheDev/requests&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2017 06:04:53 GMT</pubDate>
    <dc:creator>sanket_korgaonk</dc:creator>
    <dc:date>2017-01-11T06:04:53Z</dc:date>
    <item>
      <title>Getting 500 status code for HBase component restart</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-500-status-code-for-HBase-component-restart/m-p/123456#M51275</link>
      <description>&lt;P&gt;Command run:&lt;/P&gt;&lt;P&gt;curl -u$userName:$passWord -H 'X-Requested-By: ambari' -X POST -d '
{
   "RequestInfo":{
      "command":"RESTART",
      "context":"Restart HBase client on HOST_NAME",
      "operation_level":{
         "level":"HOST",
         "cluster_name":CLUSTER_NAME       }
   },
   "Requests/resource_filters":[
      {
         "service_name":"HBase",
         "component_name":"HBase_Client",
         "hosts":"HOST_NAME_1"
      }
   ]
}' HOST_NAME:8080/api/v1/clusters/OlatheDev/requests&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 06:04:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-500-status-code-for-HBase-component-restart/m-p/123456#M51275</guid>
      <dc:creator>sanket_korgaonk</dc:creator>
      <dc:date>2017-01-11T06:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 500 status code for HBase component restart</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-500-status-code-for-HBase-component-restart/m-p/123457#M51276</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15362/sanketkorgaonkar.html" nodeid="15362"&gt;@Sanket Korgaonkar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It seems that your API semantics are correct but there is a typo in the service name and component name in the  API call.&lt;/P&gt;&lt;P&gt;It should be "HBASE_CLIENT" instead of "Hbase_Client" and "HBASE" instead "Hbase"&lt;/P&gt;&lt;P&gt;Can you retry after making that change and let us know if that worked for you. Below is the API call with the suggested changes. Please replace cluster name and host names as needed&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H 'X-Requested-By: ambari' -X POST -d '{ "RequestInfo":{ "command":"RESTART", "context":"Restart HBase client on c6401.ambari.apache.org", "operation_level":{ "level":"HOST", "cluster_name":"c1" } }, "Requests/resource_filters":[ { "service_name":"HBASE", "component_name":"HBASE_CLIENT", "hosts":"c6401.ambari.apache.org" } ] }' 'http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/requests'&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jan 2017 03:19:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-500-status-code-for-HBase-component-restart/m-p/123457#M51276</guid>
      <dc:creator>jaimin</dc:creator>
      <dc:date>2017-01-12T03:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 500 status code for HBase component restart</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-500-status-code-for-HBase-component-restart/m-p/123458#M51277</link>
      <description>&lt;P&gt;Thanks that worked! &lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 03:21:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-500-status-code-for-HBase-component-restart/m-p/123458#M51277</guid>
      <dc:creator>sanket_korgaonk</dc:creator>
      <dc:date>2017-01-12T03:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 500 status code for HBase component restart</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-500-status-code-for-HBase-component-restart/m-p/123459#M51278</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/77344/getting-500-status-code-for-hbase-component-restar.html#"&gt;@Sanket Korgaonkar&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;I am glad that the suggestion helped you. &lt;/P&gt;&lt;P&gt;Please accept the answer. So it can be a valid verified reference for other people who encounter similar problem in future.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2017 03:40:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-500-status-code-for-HBase-component-restart/m-p/123459#M51278</guid>
      <dc:creator>jaimin</dc:creator>
      <dc:date>2017-01-12T03:40:18Z</dc:date>
    </item>
  </channel>
</rss>

