Hortonworks Sandbox Forum


  • #51453
    Simed Mehdi

    I’m using the hortonworks sandbox 2.0 on Vmware on windows 8.1 . I succeeded to connect from “Talend for Big Data” to HDFS, Hive, Hcatalog and OOzie, but not to Hbase. I tested many solution found on forums, no way !! (of course, I started Hbase before, from sandbox interface )

    So tested the connection to Hbase from this java program :

    import org.apache.hadoop.conf.Configuration;
    import org.apache.hadoop.fs.Path;
    import org.apache.hadoop.hbase.HBaseConfiguration;
    import org.apache.hadoop.hbase.MasterNotRunningException;
    import org.apache.hadoop.hbase.ZooKeeperConnectionException;
    import org.apache.hadoop.hbase.client.HBaseAdmin;

    public class Test {

    public static void main(String[] args) {
    // TODO Auto-generated method stub
    Configuration config = HBaseConfiguration.create();
    config.set(“hbase.zookeeper.quorum”, “”);
    config.set(“hbase.zookeeper.property.clientPort”, “2181”);
    config.set(“zookeeper.znode.parent”, “/hbase-unsecure”);
    //config.addResource(new Path(“/etc/hbase/conf/hbase-site.xml”));
    //config.set(“zookeeper.znode.parent”, “/hbase-unsecure”);
    //config.setInt(“timeout”, 120000);
    //config.set(“hbase.master”, “sandbox.hortonworks.com:60010”);
    try {
    } catch (ZooKeeperConnectionException e) {
    } catch (MasterNotRunningException e) {



    and i get this error :

    avr. 11, 2014 11:02:02 AM org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation getMaster
    Infos: ZooKeeper available but no active master location found
    avr. 11, 2014 11:02:02 AM org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation getMaster
    Infos: getMaster attempt 0 of 1 failed; no more retrying.
    at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:356)
    at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:90)
    at org.apache.hadoop.hbase.client.HBaseAdmin.checkHBaseAvailable(HBaseAdmin.java:1202)
    at Test.main(Test.java:23)

    I don’t understand why it says that Master is not running, because when i try : on my browser, i can see that the master is started.

    Please help me in this regard.


to create new topics or reply. | New User Registration

You must be to reply to this topic. | Create Account

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.