Enable Impersonation for HBase

About this task

HBase can be configured to offer impersonation, with or without Kerberos. This means that users can send commands to HBase through Hue without losing the fact that they will be run under their own credentials, instead of the 'hue' user.

Procedure

  1. Make sure you have the following in your hbase-site.xml file:
    <property>
      <name>hbase.thrift.support.proxyuser</name>
      <value>true</value>
    </property>
      
    <property>
      <name>hbase.regionserver.thrift.http</name>
      <value>true</value>
    </property>
  2. Check in core-site.xml that HBase is authorized to impersonates someone.
    <property>
      <name>hadoop.proxyuser.hbase.hosts</name>
      <value>*</value>
    </property>
      
    <property>
      <name>hadoop.proxyuser.hbase.groups</name>
      <value>*</value>
    </property>
  3. Check that Hue points to a local config directory of HBase specified in its hue.ini file:
    [hbase]
    hbase_conf_dir=/etc/hbase/conf