Note that there are some explanatory texts on larger screens.

plurals
  1. POHBase standalone failed to connect (fail to create table)
    text
    copied!<p>I am trying to deploy Hbase in standalone mode following this article: <a href="http://hbase.apache.org/book.html#quickstart">http://hbase.apache.org/book.html#quickstart</a>. The version is 0.92.1-cdh4.1.2</p> <p>But I am getting these errors when try to create a table:</p> <p>Error message:</p> <pre><code> 13/04/01 14:07:10 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 3 retries 13/04/01 14:07:10 WARN zookeeper.ZKUtil: hconnection Unable to set watcher on znode /hbase/master org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master at org.apache.zookeeper.KeeperException.create(KeeperException.java:99) at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1021) at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:154) at org.apache.hadoop.hbase.zookeeper.ZKUtil.watchAndCheckExists(ZKUtil.java:226) at org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker.start(ZooKeeperNodeTracker.java:82) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:580) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.&lt;init&gt;(HConnectionManager.java:569) </code></pre> <p>Output log:</p> <pre><code>13/04/01 14:06:39 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection 13/04/01 14:06:39 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 10231@localhost 13/04/01 14:06:39 INFO zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (Unable to locate a login configuration) 13/04/01 14:06:39 WARN zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068) 13/04/01 14:06:39 WARN zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid </code></pre> <p>My configurations:</p> <ol> <li>Added JAVA_HOME in hbase-env.sh</li> <li><p>hbase_site.xml</p> <p></p> <p></p> <pre><code>&lt;name&gt;hbase.rootdir&lt;/name&gt; &lt;value&gt;file:///home/hadoop/data&lt;/value&gt; </code></pre> <p></p> <p></p> <pre><code>&lt;name&gt;hbase.zookeeper.property.dataDir&lt;/name&gt; &lt;value&gt;file:///home/hadoop/zookeeper&lt;/value&gt; </code></pre> <p></p> <p></p></li> </ol> <p>I have tried to modify /etc/hosts, which looks likes this (oracle is the hostname):</p> <pre><code>127.0.0.1 localhost oracle </code></pre> <p>or </p> <pre><code>[server ip] localhost oracle </code></pre> <p>But these do not work for me.</p> <p>My exact codes are:</p> <pre><code>[usr@oracle bin]$ ./start-hbase.sh starting master, logging to /home/hadoop/hbase-0.94.6/bin/../logs/hbase-usr-master-oracle.out [usr@oracle bin]$ hbase shell 13/04/01 14:57:55 WARN conf.Configuration: hadoop.native.lib is deprecated. Instead, use io.native.lib.available HBase Shell; enter 'help&lt;RETURN&gt;' for list of supported commands. Type "exit&lt;RETURN&gt;" to leave the HBase Shell Version 0.92.1-cdh4.1.2, rUnknown, Thu Nov 1 18:02:07 PDT 2012 hbase(main):001:0&gt; create 'test','cf' </code></pre> <p>Thanks in advance!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload