AnsweredAssumed Answered

i can not create mapr table with hbase api in M7

Question asked by thor on Jun 4, 2014
Latest reply on Jun 16, 2014 by nabeel
In hadoop ,i can create a table use hbase api,
<code>
Configuration cfg = HBaseConfiguration.create();

// set zookeeper

cfg.set("hbase.zookeeper.quorum", "192.168.1.104");

 cfg.set("hbase.zookeeper.property.clientPort", "5181");
 
HBaseAdmin admin = new HBaseAdmin(cfg);

admin.createTable(htd);
</code>

but I export the java project and copy to mapr cluster and run the java project.

**java -jar xxx.jar /mapr/wst/user.txt**

------------------------------------

it can not create mapr table , the terminal show error logs:

<pre>
20081, exception=java.io.IOException: Can't get master address from ZooKeeper; znode data == null
14/06/03 07:41:30 INFO client.HConnectionManager$HConnectionImplementation: getMaster attempt 23 of 35 failed; retrying after sleep of 20167, exception=java.io.IOException: Can't get master address from ZooKeeper; znode data == null
 14/06/03 07:41:50 INFO client.HConnectionManager$HConnectionImplementation: getMaster attempt 24 of 35 failed; retrying after sleep of 20024, exception=java.io.IOException: Can't get master address from ZooKeeper; znode data == null
 14/06/03 07:42:10 INFO client.HConnectionManager$HConnectionImplementation: getMaster attempt 25 of 35 failed; retrying after sleep of 20102, exception=java.io.IOException: Can't get master address from ZooKeeper; znode data == null

Outcomes