Configure HiveServer2 to use LDAP Authentication with OpenLDAP

  1. Configure the following properties in the hive-site.xml file on each node where HiveServer2 is installed:
    Property Value
    hive.server2.authentication LDAP
    hive.server2.authentication.ldap.url The access URL for your LDAP server
    hive.server2.authentication.ldap.baseDN The base LDAP DN for your LDAP server. For example, ou=People,dc=mycompany,dc=com.
    property>
      <name>hive.server2.authentication</name>
      <value>LDAP</value>
    </property>
    <property>
      <name>hive.server2.authentication.ldap.url</name>
      <value><LDAP URL></value>
    </property>
    <property>
      <name>hive.server2.authentication.ldap.baseDN</name>
      <value><LDAP Base DN></value>
    </property>
  2. Restart HiveServer2 to apply these changes.
    maprcli node services -name hs2 -action restart -nodes <comma separated list of nodes>