Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HBase : Zookeeper serves Internal IP to Remote client (Java API)

HBase : Zookeeper serves Internal IP to Remote client (Java API)


I am running a very basic HBase connection program from a remote server.
Reading the server logs, I see Zookeeper acknowledge the request, but then serves to the Client the internal IP of HBase Master, which is of no use from the outside world.

I know where the master is and what its public IP is but I do not know how to effectively connect to HBase remotely using the Java API. Any Ideas ?

I've seen some people advice to mess up with the /etc/hosts file but that's an ugly and inelegant solution, and it breaks other parts of the ecosystem.

    String zookeeperHost = "public.ip.address";

    Configuration hconfig = HBaseConfiguration.create();
    hconfig.set("", "2181");
    hconfig.set("zookeeper.znode.parent", "/hbase-unsecure");


org.apache.hadoop.hbase.MasterNotRunningException: unknown host:

Don't have an account?
Coming from Hortonworks? Activate your account here