Enable LDAP AuthenticationEnable LDAP Authentication
To enable LDAP mode of authentication using Active Directory for HiveServer2 for Warehouse data source, follow these steps.
- Log on to the Analytics Warehouse appliance as root user.
-
Navigate to /opt/mapr/hive/hive-0.11/conf.new/ directory. Type the following command and press ENTER:
cd /opt/mapr/hive/hive-0.11/conf.new/
-
Edit the file hive-site.xml. Type the following command and press ENTER:
vi hive-site.xml
- Add the following properties under <Configuration> tag:
<property> <name>hive.server2.authentication</name> <value>LDAP</value> </property> <property> <name>hive.server2.authentication.ldap.url</name> <value>LDAP_URL</value> </property>
Where LDAP_URL is the URL of the LDAP Server. - Restart HiveServer2.