title: Can't get HBase to connect to Hadoop
body: <p>EDIT: I was able to get this to work.  I created a tutorial to show how:
  <a href="http://www.dreamsyssoft.com/blog/blog.php?/archives/5-How-to-use-HBase-Hadoop-Clustered.html" rel="nofollow">http://www.dreamsyssoft.com/blog/blog.php?/archives/5-How-to-use-HBase-Hadoop-Clustered.html</a></p>
  
  <p>I can get HBase working just fine when I set the hbase-site.xml property:</p>
  
  <pre><code>&lt;name&gt;hbase.rootdir&lt;/name&gt;
  &lt;value&gt;file:///app/hbase/hbase/&lt;/value&gt;
  </code></pre>
  
  <p>This works just fine, it stores the data in the directory as expected, however I want it to connect to my running hadoop instance now instead of using a local file.  I set it to </p>
  
  <pre><code>&lt;value&gt;hdfs://localhost:9000/&lt;/value&gt;
  </code></pre>
  
  <p>Instead of the local file and it will not work.  Is there some extra configuration I need to do on the hadoop side to support this?  Hadoop is running and using port 9000.</p>
  
  <p>Here's my core-site.xml from hadoop:</p>
  
  <pre><code>&lt;configuration&gt;
          &lt;property&gt;
                  &lt;name&gt;fs.default.name&lt;/name&gt;
                  &lt;value&gt;hdfs://localhost:9000&lt;/value&gt;
          &lt;/property&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Also here's the error when trying to do a "list" in hbase shell:</p>
  
  <pre><code>hbase(main):001:0&gt; list
  TABLE
  12/06/28 15:26:29 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 3 retries
  12/06/28 15:26:29 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:76)
          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)
          at org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:186)
          at org.apache.hadoop.hbase.client.HBaseAdmin.&lt;init&gt;(HBaseAdmin.java:98)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
          at org.jruby.javasupport.JavaConstructor.newInstanceDirect(JavaConstructor.java:275)
          at org.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java:91)
          at org.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java:178)
  </code></pre>