Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hue HBase error Api Error: The kerberos principal name is missing from the hbase-site.xml

Hue HBase error Api Error: The kerberos principal name is missing from the hbase-site.xml

Explorer

After following all the steps from https://community.cloudera.com/t5/Storage-Random-Access-HDFS/Configuring-Hue-s-Hbase-Application/ta-..., getting below error while trying to open HBase Browser from Hue, please help.

"Api Error: The kerberos principal name is missing from the hbase-site.xml configuration file."


hbase-site.xml

<property>
<name>hbase.master.kerberos.principal</name>
<value>hbase/_HOST@XYZ.COM</value>
</property>
<property>
<name>hbase.regionserver.kerberos.principal</name>
<value>hbase/_HOST@XYZ.COM</value>
</property>
<property>
<name>hbase.thrift.kerberos.principal</name>
<value>HTTP/_HOST@XYZ.COM</value>
</property>
<property>
<name>hadoop.security.authorization</name>
<value>true</value>
</property>

2 REPLIES 2

Re: Hue HBase error Api Error: The kerberos principal name is missing from the hbase-site.xml

Super Guru

@joyabrata,

 

One of the likely causes of this problem is that Hue is not looking in the correct location for the hbase.conf.  If you are using Cloudera Manager 5.7 or higher, Cloudera Manager will automatically generate the correct value.

Did you add the HBASE_CONF_DIR value in the safety valve?  If so, you might try removing it, save, and then restart Hue to see if that might help.

 

If you still get the error, please look at the /var/log/hue/runcpserver.log for clues and perhaps some context and stac trace for us to review.

Re: Hue HBase error Api Error: The kerberos principal name is missing from the hbase-site.xml

Explorer

@bgooley

Unfortunately CM 5.4 is in use so not sure whethere removing safety valve would work.

hue_safety_valve.ini
[hbase]
hbase_conf_dir=/etc/hbase/conf

runcpserver.log
[11/Jan/2018 05:01:00 -0800] middleware INFO Processing exception: Api Error: The kerberos principal name is missing from the hbase-site.xml configuration file.: Traceback (most recent call last):
File "/opt/cloudera/parcels/CDH-5.4.7-1.cdh5.4.7.p0.3/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py", line 112, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/cloudera/parcels/CDH-5.4.7-1.cdh5.4.7.p0.3/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/transaction.py", line 371, in inner
return func(*args, **kwargs)
File "/opt/cloudera/parcels/CDH-5.4.7-1.cdh5.4.7.p0.3/lib/hue/apps/hbase/src/hbase/views.py", line 76, in api_router
return api_dump(HbaseApi(request.user).query(*url_params))
File "/opt/cloudera/parcels/CDH-5.4.7-1.cdh5.4.7.p0.3/lib/hue/apps/hbase/src/hbase/api.py", line 54, in query
raise PopupException(_("Api Error: %s") % e.message)
PopupException: Api Error: The kerberos principal name is missing from the hbase-site.xml configuration file.