I am trying to write a Java Client to access HBase from my mac client to HBASE server running in VM. (HDP SandBox 2.2). This is the code I am using. I saw similar posts but none of those answers solved my problem. I verified that HBASE is running in VM and I can access and create tables using HBASE Shell.
I am getting Master not running Exception.
{
try
{
System.out.println( “HBase Client!” );
Configuration conf = HBaseConfiguration.create();
conf.clear();
conf.set(“hbase.master”, “192.168.240.131:6000″);
conf.set(“hbase.zookeeper.quorum”, “192.168.240.131”);
conf.set(“hbase.zookeeper.property.clientPort”, “2181”);
HBaseAdmin.checkHBaseAvailable(conf);
System.out.println(“HBase running !”);
}
catch(Exception e)
{
System.out.println(“HBase not running !”);
}
}
I verified ports and IP and looks correct to me.
Any help Appreciated !