Configure LDAP Authentication Between Hue and Hive
About this task
Complete the following steps to configure LDAP authentication between Hue and Hive:
Procedure
-
Configure Hue to connect to Hive with LDAP authentication:
-
Configure the
[beeswax]
section of thehue.ini:
setmechanism
option. -
For Hue 3.10 or later, set the
auth_username
andauth_password
options in the[desktop]
or[beeswax]
sections ofhue.ini
; for Hue 3.9, set theldap_username
andldap_password
options in the[desktop]
section.
The following examples summarize these changes:Example for Hue 3.10[desktop] ... # Default LDAP/PAM/.. username and password of the hue user used for authentications with other services. # e.g. LDAP pass-through authentication for HiveServer2 or Impala. Apps can override them individually. auth_username=sampleuser auth_password=123456 ... [beeswax] ... # Security mechanism of authentication none/GSSAPI/MAPR-SECURITY mechanism=LDAP
Example for Hue 3.9[desktop] ... # LDAP username and password of the hue user used for LDAP authentications. # Set it to use LDAP Authentication with HiveServer2 and Impala. ldap_username=sampleuser ldap_password=123456 ... [beeswax] ... # Security mechanism of authentication none/GSSAPI/MAPR-SECURITY mechanism=LDAP
-
Configure the
- Optional: Configure Hue to authenticate users through LDAP. See Configure Hue with LDAP.
-
Restart Hue:
maprcli node services -name hue -action restart -nodes <space delimited list of nodes>