My Oracle Support Banner

Java Application for HBase Will Not Connect To Zookeeper - getting SASL Error (Doc ID 2140606.1)

Last updated on JANUARY 28, 2020

Applies to:

Big Data Appliance Integrated Software - Version 4.4.0 and later
Linux x86-64

Symptoms

NOTE: In the examples that follow, user details, cluster names, hostnames, directory paths, filenames, etc. represent a fictitious sample (and are used to provide an illustrative example only). Any similarity to actual persons, or entities, living or dead, is purely coincidental and not intended in any manner.

On BDA 4.4.0, when trying to connect to HBase using java code, the java code is able to connect but raises the error below when trying to look at tables. There seems to be an authentication issue between HBase and Zookeeper.

16/05/04 09:42:40 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp
16/05/04 09:42:40 INFO zookeeper.ZooKeeper: Client environment:java.compiler=
16/05/04 09:42:40 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
16/05/04 09:42:40 INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
16/05/04 09:42:40 INFO zookeeper.ZooKeeper: Client environment:os.version=2.6.39 -400.264.1.el6uek.x86_64
16/05/04 09:42:40 INFO zookeeper.ZooKeeper: Client environment:user.name=<USER>l
16/05/04 09:42:40 INFO zookeeper.ZooKeeper: Client environment:user.home=/home/<USER>
16/05/04 09:42:40 INFO zookeeper.ZooKeeper: Client environment:user.dir=/tmp/hsperfdata_<USER>
16/05/04 09:42:40 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=bdanode02.example.com:2181,bdanode01.example.com:2181,bdanode03.example.com:2181 sessionTimeout=180000 watcher=hconnection
16/05/04 09:42:40 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is <USER>@bdanode03.example.com
16/05/04 09:42:40 INFO zookeeper.ClientCnxn: Opening socket connection to server bdanode03.example.com/<PRIVATE_IP_HOST3>:2181. Will not attempt to authenticate using SASL (unknown error)
16/05/04 09:42:40 INFO zookeeper.ClientCnxn: Socket connection established, initiating session, client: /<PRIVATE_IP_HOST3>:12711, server: bdanode03.example.com/<PRIVATE_IP_HOST3>:2181
16/05/04 09:42:40 INFO zookeeper.ClientCnxn: Session establishment complete on server bdanode03.example.com/<PRIVATE_IP_HOST3>:2181, sessionid = <SESSIONID>, negotiated timeout = 60000

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.