title: Hbase error zookeeper exists failed after 3 retiries
body: <p>I am using HBASE 0.94.8 standalone mode in Ubuntu. Its working fine i am able to do every operations in Hbase-shell. But after i logged of my system its giving following error </p>
  
  <pre><code>15/07/28 15:10:30 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 3 retries
  15/07/28 15:10:30 WARN zookeeper.ZKUtil: hconnection-0x14ed40513350009 Unable to set watcher on znode (/hbase)
  org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase
      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:1041)
      at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:172)
      at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:450)
      at org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker.checkIfBaseNodeAvailable(ZooKeeperNodeTracker.java:208)
      at org.apache.hadoop.hbase.zookeeper.RootRegionTracker.waitRootRegionLocation(RootRegionTracker.java:77)
      at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:885)
      at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:998)
      at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:896)
      at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:998)
      at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:900)
      at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:857)
  </code></pre>
  
  <p>Yes sure i have searched a lot. I have found some information <a href="https://stackoverflow.com/questions/20239072/zookeeper-exists-failed-after-3-retries">ZooKeeper exists failed after 3 retries</a>. May be this error is because <strong>zookeeper</strong> is stopped. But i don't know to to restart it again. I tried to start <code>Hbase</code> and <code>thrift</code> again but still this is issue.</p>
  
  <p>This command <code>ps axww | grep QuorumPeerMain</code> gives me following output:</p>
  
  <pre><code> 6162 pts/2    S+     0:00 grep --color=auto QuorumPeerMain
  </code></pre>
  
  <p>Hbase starts working if i restart my system. But i want proper solution.</p>
  
  <hr>
  
  <p><strong>Temporary solution</strong></p>
  
  <p>with following command i grep this process of HBASE:</p>
  
  <pre><code>ps -fe grep | hbase
  </code></pre>
  
  <p>and then kill all process of HBASE :</p>
  
  <pre><code>kill -9 4555//assuming 4555 is process id of hbase
  </code></pre>
  
  <p>Then restarted hbase with sudo and thrift and it start working but i want permanent solution. Because if i am using HBASE in server (means not local machine) i can't restart HBASE everytime.</p>