Enable pluggable authentication for HiveServer2

0 votes
How can I enable Pluggable authentication for Hive cluster?
Jun 3, 2019 in Big Data Hadoop by Kiran
748 views

1 answer to this question.

0 votes

To enable pluggable authentication, first, add the following properties in the hive-site.xml file:

<property>
  <name>hive.server2.authentication</name>
  <value>CUSTOM</value>
  <description>Client authentication types.
  NONE: no authentication check
  LDAP: LDAP/AD based authentication
  KERBEROS: Kerberos/GSSAPI authentication
  CUSTOM: Custom authentication provider
  (Use with property hive.server2.custom.authentication.class)
  </description>
</property>

<property>
  <name>hive.server2.custom.authentication.class</name>
  <value>pluggable-auth-class-name</value>
  <description>
  Custom authentication class. Used when property
  'hive.server2.authentication' is set to 'CUSTOM'. Provided class
  must be a proper implementation of the interface
  org.apache.hive.service.auth.PasswdAuthenticationProvider. HiveServer2
  will call its Authenticate(user, passed) method to authenticate requests.
  The implementation may optionally extend the Hadoop's
  org.apache.hadoop.conf.Configured class to grab Hive's Configuration object.
  </description>
</property>

And then make the class available in the CLASSPATH of HiveServer2.

answered Jun 3, 2019 by Yogi

Related Questions In Big Data Hadoop

0 votes
1 answer

HiveServer2: Enable LDAP Authentication for managed clusters

Follow the below mentioned steps to enable ...READ MORE

answered Jun 3, 2019 in Big Data Hadoop by Karan
572 views
0 votes
1 answer

How to set LDAP authentication for HiveServer2 for unmanaged clusters?

To enable LDAP authentication for HiveServer2 unmanaged ...READ MORE

answered Jun 3, 2019 in Big Data Hadoop by Sanman
817 views
0 votes
1 answer

Enabling LDAP authentication for HiveServer2 using OpenLdAP

To enable LDAP authentication using OpenLDAP, include ...READ MORE

answered Jun 3, 2019 in Big Data Hadoop by Tina
1,030 views
0 votes
1 answer

Configuring JDBC Clients for LDAP Authentication with HiveServer2

JDBC client requires a connection URL as ...