Configuring Apache ZooKeeper for Kerberos authentication
The driver supports Kerberos authentication for Apache ZooKeeper.
To configure Apache ZooKeeper for Kerberos authentication:
Connect to Apache ZooKeeper by configuring the following connection options.
Set the Zookeeper Discovery option to 1 (Enabled).
Set the Zookeeper Namespace option to the name of the ZooKeeper name space. The default is /hiveserver2.
Set the Host Name option to the list of the member servers for the ZooKeeper ensemble to which you want to connect. The value for this option takes the following form:
Enable Kerberos authentication by configuring the following connection options.
1. Set the Authentication Method option to 4 (Kerberos).
2. Set the Service Principal Name option to the service principal name for your Apache ZooKeeper to be used for Kerberos authentication. The value for this option takes the following form: zookeeper/hostname@REALM.COM.
For example, zookeeper/ZKserver1.example.com@EXAMPLE.COM.
The following examples show how to connect to Apache ZooKeeper using Kerberos authentication.