Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

HBase : Master Not Running Exception (HDP SandBox)

$
0
0

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 !


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>