The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

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(“”, “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”, “”);
    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(
    at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(
    at org.apache.hadoop.hbase.client.HBaseAdmin.checkHBaseAvailable(
    at Test.main(

    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.


The forum ‘Hortonworks Sandbox’ is closed to new topics and replies.

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.