<?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 hbase rest api failing in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-rest-api-failing/m-p/233831#M80041</link>
    <description>&lt;P&gt;
	i followed the steps in the link below to enable Hbase rest in Kerberos but when I give the rest command is throwing error. I can see the rest server is up .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/91425/howto-start-and-test-hbase-rest-server-in-a-kerber.html/"&gt;https://community.hortonworks.com/articles/91425/howto-start-and-test-hbase-rest-server-in-a-kerber.html/&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt; added the following to Custom Hbase-Site.xml and bounced services hdfs,hbase and others.
 
 hbase.rest.authentication.type=kerberos
 hbase.master.kerberos.principal=hbase/_HOST@xxx.com
 hbase.master.keytab.file=/etc/security/keytabs/hbase.service.keytab
 hadoop.proxyuser.HTTP.groups=*
 hadoop.proxyuser.HTTP.hosts=*
 hbase.security.authorization=true
 hbase.rest.authentication.kerberos.keytab=/etc/security/keytabs/spnego.service.keytab
 hbase.rest.authentication.kerberos.principal=HTTP/_HOST@xxx.com
 hbase.security.authentication=kerberos
 hbase.rest.kerberos.principal=hbase/_HOST@xxx.com
 hbase.rest.keytab.file=/etc/security/keytabs/hbase.service.keytab
 hbase.rest.info.port=17050
 hbase.rest.port=17000

normal way to start rest :
[hbase@hadoop1 ~]$ /usr/hdp/current/hbase-master/bin/hbase-daemon.sh stop rest
stopping rest..
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$ netstat -a | grep 17000
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$ /usr/hdp/current/hbase-master/bin/hbase-daemon.sh start rest
starting rest, logging to /var/log/hbase/hbase-hbase-rest-hadoop1.out
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$ netstat -a | grep 17000
tcp        0      0 *:17000                     *:*                         LISTEN
[hbase@hadoop1 ~]$
 
 [hbase@hadoop1 ~]$ curl --negotiate -u : 'http://hadoop1:17000/status/cluster'
 &amp;lt;html&amp;gt;
 &amp;lt;head&amp;gt;
 &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/&amp;gt;
 &amp;lt;title&amp;gt;Error 404 NOT_FOUND&amp;lt;/title&amp;gt;
 &amp;lt;/head&amp;gt;
 &amp;lt;body&amp;gt;
 &amp;lt;h2&amp;gt;HTTP ERROR: 404&amp;lt;/h2&amp;gt;
 &amp;lt;p&amp;gt;Problem accessing /status/cluster. Reason:
 &amp;lt;pre&amp;gt;    NOT_FOUND&amp;lt;/pre&amp;gt;&amp;lt;/p&amp;gt;
 &amp;lt;hr /&amp;gt;&amp;lt;i&amp;gt;&amp;lt;small&amp;gt;Powered by Jetty://&amp;lt;/small&amp;gt;&amp;lt;/i&amp;gt;
 
&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 Jun 2018 04:06:46 GMT</pubDate>
    <dc:creator>aliyesami</dc:creator>
    <dc:date>2018-06-29T04:06:46Z</dc:date>
    <item>
      <title>hbase rest api failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-rest-api-failing/m-p/233831#M80041</link>
      <description>&lt;P&gt;
	i followed the steps in the link below to enable Hbase rest in Kerberos but when I give the rest command is throwing error. I can see the rest server is up .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/91425/howto-start-and-test-hbase-rest-server-in-a-kerber.html/"&gt;https://community.hortonworks.com/articles/91425/howto-start-and-test-hbase-rest-server-in-a-kerber.html/&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt; added the following to Custom Hbase-Site.xml and bounced services hdfs,hbase and others.
 
 hbase.rest.authentication.type=kerberos
 hbase.master.kerberos.principal=hbase/_HOST@xxx.com
 hbase.master.keytab.file=/etc/security/keytabs/hbase.service.keytab
 hadoop.proxyuser.HTTP.groups=*
 hadoop.proxyuser.HTTP.hosts=*
 hbase.security.authorization=true
 hbase.rest.authentication.kerberos.keytab=/etc/security/keytabs/spnego.service.keytab
 hbase.rest.authentication.kerberos.principal=HTTP/_HOST@xxx.com
 hbase.security.authentication=kerberos
 hbase.rest.kerberos.principal=hbase/_HOST@xxx.com
 hbase.rest.keytab.file=/etc/security/keytabs/hbase.service.keytab
 hbase.rest.info.port=17050
 hbase.rest.port=17000

normal way to start rest :
[hbase@hadoop1 ~]$ /usr/hdp/current/hbase-master/bin/hbase-daemon.sh stop rest
stopping rest..
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$ netstat -a | grep 17000
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$ /usr/hdp/current/hbase-master/bin/hbase-daemon.sh start rest
starting rest, logging to /var/log/hbase/hbase-hbase-rest-hadoop1.out
[hbase@hadoop1 ~]$
[hbase@hadoop1 ~]$ netstat -a | grep 17000
tcp        0      0 *:17000                     *:*                         LISTEN
[hbase@hadoop1 ~]$
 
 [hbase@hadoop1 ~]$ curl --negotiate -u : 'http://hadoop1:17000/status/cluster'
 &amp;lt;html&amp;gt;
 &amp;lt;head&amp;gt;
 &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/&amp;gt;
 &amp;lt;title&amp;gt;Error 404 NOT_FOUND&amp;lt;/title&amp;gt;
 &amp;lt;/head&amp;gt;
 &amp;lt;body&amp;gt;
 &amp;lt;h2&amp;gt;HTTP ERROR: 404&amp;lt;/h2&amp;gt;
 &amp;lt;p&amp;gt;Problem accessing /status/cluster. Reason:
 &amp;lt;pre&amp;gt;    NOT_FOUND&amp;lt;/pre&amp;gt;&amp;lt;/p&amp;gt;
 &amp;lt;hr /&amp;gt;&amp;lt;i&amp;gt;&amp;lt;small&amp;gt;Powered by Jetty://&amp;lt;/small&amp;gt;&amp;lt;/i&amp;gt;
 
&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jun 2018 04:06:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-rest-api-failing/m-p/233831#M80041</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-06-29T04:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: hbase rest api failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-rest-api-failing/m-p/233832#M80042</link>
      <description>can someone look into this please?</description>
      <pubDate>Fri, 29 Jun 2018 20:19:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-rest-api-failing/m-p/233832#M80042</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-06-29T20:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: hbase rest api failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-rest-api-failing/m-p/233833#M80043</link>
      <description>&lt;P&gt;found out .. was missing this parameter in hbase config&lt;/P&gt;&lt;PRE&gt;hbase.rest.authentication.kerberos.principal=HTTP/_HOST@&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jun 2018 21:34:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hbase-rest-api-failing/m-p/233833#M80043</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-06-29T21:34:45Z</dc:date>
    </item>
  </channel>
</rss>

