Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using ZooKeeper/ Common Issues About ZooKeeper/ Why Cannot the Client Connect to ZooKeeper using the IBM JDK?
Updated on 2022-11-18 GMT+08:00

Why Cannot the Client Connect to ZooKeeper using the IBM JDK?

Question

When the IBM JDK is used, the client fails to connect to ZooKeeper.

Answer

The possible cause is that the jaas.conf file format of the IBM JDK is different from that of the common JDK.

If IBM JDK is used, use the following jaas.conf template. The useKeytab file path must start with file://, followed by an absolute path.

Client {
com.ibm.security.auth.module.Krb5LoginModule required
useKeytab="file://D:/install/HbaseClientSample/conf/user.keytab"
principal="hbaseuser1"
credsType="both";
};