Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: ldap url example

...

Panel

hive.server2.authentication – Authentication mode, default NONE. Options are NONE (Uses plain SASL), NOSASL, KERBEROS, LDAP, PAM and CUSTOM.

Set following for KERBEROS mode :

hive.server2.authentication.kerberos.principal – Kerberos principal for server.

hive.server2.authentication.kerberos.keytab – Keytab for server principal.

Set following for LDAP mode :

hive.server2.authentication.ldap.url – LDAP URL. (eg. ldap://hostname.com:389)

hive.server2.authentication.ldap.baseDN – LDAP base DN. (Optional for AD)

Set following for CUSTOM mode :

hive.server2.custom.authentication.class – Custom authentication class that implements the org.apache.hive.service.auth.PasswdAuthenticationProvider interface.

For PAM mode, see details in section on PAM below.

...

Pluggable Authentication Modules (PAM)

HIVE-6466, which will be available in Hive 0.13, provides support for PAM. To configure PAM:

  • Download the JPAM native library for the relevant architecture.
  • Unzip and copy libjpam.so to a directory (<libjmap-directory>) on the system. 
  • Add the directory to the LD_LIBRARY_PATH environment variable like so: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<libjmap-directory> 

...