8

I am very new to Hadoop/Hbase and zookeeper.
I am facing following exception while running create table command in hbase shell.

org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

in this question it is mentioned that i need to follow these steps:

1. Stop Zookeeper  
2. Wipe the Zookeeper data directory  
3. Restart it

To resolve this issue.

Can someone please explain how to perform these steps in Ubuntu.
Any Help will be highly appreciated

Community
  • 1
  • 1
User7723337
  • 11,857
  • 27
  • 101
  • 182
  • Is this a pseudo-distributed HBase environment? – b4hand May 02 '14 at 23:38
  • The error `PleaseHoldException: Master is initializing` can be due to a number of reasons. Have you looked in the HBase UI? Typically this is located at `http://localhost:60010/master-status` or similarly on the machine you are running the master. Can you post the logs from your HBase master? Possibly under /var/log/hbase/? – b4hand May 02 '14 at 23:42

2 Answers2

13

/zookeeperHome/conf/zoo.cfg: file will have data directroy details

tickTime=2000
dataDir=/var/zookeeper
clientPort=2181

see this

Community
  • 1
  • 1
Malatesh
  • 1,944
  • 6
  • 26
  • 39
2

By default, the data directory is /tmp/zookeeper. Otherwise check zoo.cfg file. Check for property dataDir and clean up corresponding direcrory.

Nipun Talukdar
  • 4,975
  • 6
  • 30
  • 42
  • Thanks for replay, but on my Ubuntu i can't find "/tmp/zookeeper" or "zoo.cfg" file either. from one of the conf file of hbase i found that data dir is something "/opt/hbase-data/zookeeper/" but there are only tow folders in this dir "myid" and "version-2" are these the folders that i need to cleanup? – User7723337 Apr 11 '14 at 05:19
  • Ok. just clean up that folder – Nipun Talukdar Apr 11 '14 at 08:33
  • So i need to delete "myid" and "version-2" folder and run hadoop and hbase again? – User7723337 Apr 11 '14 at 11:45
  • i deleted both of these file and dir but problem is still same. still getting same errors. – User7723337 Apr 11 '14 at 13:11
  • You need the myid file, that contains an integer that uniquely identifies your zookeeper node. Deleting version-2 was all you needed. – mohit6up May 06 '14 at 16:35
  • Noticed a Ubuntu "apt-get install zookeeperd" installation default location at ./var/lib/zookeeper/myid with another one in ./etc/zookeeper/conf_example/myid, wonder which config has these referred – kisna May 13 '16 at 09:27