Re: How to connect to remote Hbase using JAVA API

HBase API calls would involve connecting to every HBase service role host on the cluster from the host you are executing on. This requires proper resolution available to discover all RegionServer and Master hostnames.

In your case, your client host is able to resolve the passed ZK hostname of "en01com", but it must also be able to resolve every Master/RS host such as dn03.com.

If you do not rely on a DNS backend to do this for you, your /etc/hosts file must carry every cluster host's entry in the below form:

Re: How to connect to remote Hbase using JAVA API

The client application(local system) is connecting to the edge node and /etc/hosts/ on the edge node has all the hostnames as below. Do I need to change anything in this hosts file for my local system to be able to connect to the hbase service on the cluster?

en01 and nn01 has zookeeper , hbase master on nn01 , regionservers are all the datanodes.