Support Questions

Find answers, ask questions, and share your expertise

hbase rest api failing

avatar
Super Collaborator

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 .

https://community.hortonworks.com/articles/91425/howto-start-and-test-hbase-rest-server-in-a-kerber....

 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'
 <html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
 <title>Error 404 NOT_FOUND</title>
 </head>
 <body>
 <h2>HTTP ERROR: 404</h2>
 <p>Problem accessing /status/cluster. Reason:
 <pre>    NOT_FOUND</pre></p>
 <hr /><i><small>Powered by Jetty://</small></i>
 
1 ACCEPTED SOLUTION

avatar
Super Collaborator

found out .. was missing this parameter in hbase config

hbase.rest.authentication.kerberos.principal=HTTP/_HOST@

View solution in original post

2 REPLIES 2

avatar
Super Collaborator
can someone look into this please?

avatar
Super Collaborator

found out .. was missing this parameter in hbase config

hbase.rest.authentication.kerberos.principal=HTTP/_HOST@