skip to main content
Using the Driver : Apache ZooKeeper : Configuring Apache ZooKeeper for Kerberos authentication
  

Try DataDirect Drivers Now

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:
host_name:port_number | IP_address:port_number [, ...]
*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.
Using a connection string:
DRIVER=DataDirect 8.0 Apache Hive Wire Protocol;DatabaseName=hivedb1;
HostName=ZKServer1:2181,255.125.1.11:2818,ZKServer3:2828;
ZookeeperNamespace=mynamespace1;ZookeeperDiscovery=1;
ServicePrincipalName=zookeeper/ZKserver1.example.com@EXAMPLE.COM;
AuthenticationMethod=4
Using the odbc.ini file:
Driver=ODBCHOME/lib/ivhivexx.so
Description=DataDirect Apache Hive Wire Protocol driver
Database=hivedb1
HostName=ZKServer1:2181,255.125.1.11:2818,ZKServer3:2828
ZookeeperNamespace=mynamespace1
ZookeeperDiscovery=1
ServicePrincipalName=zookeeper/ZKserver1.example.com@EXAMPLE.COM
AuthenticationMethod=4