Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wiping out the Zookeeper data directory

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

like image 632
User7723337 Avatar asked Apr 10 '14 08:04

User7723337


People also ask

Where is zookeeper data directory?

Additional considerations For example, on Windows, the default directory for the Kafka on-disk topic queues is C:\ProgramData\Esri\GeoEvent-Gateway\kafka\logs, and the Zookeeper configuration files default directory is C:\ProgramData\Esri\GeoEvent-Gateway\zookeeper-data.

Can I delete zookeeper logs?

Stop shared services and delete the log files. When enabled, ZooKeeper auto purge feature retains the autopurge. snapRetainCount most recent snapshots and the corresponding transaction logs in the dataDir and dataLogDir respectively and deletes the rest.


2 Answers

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

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

see this

like image 60
Malatesh Avatar answered Sep 22 '22 08:09

Malatesh


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

like image 44
Nipun Talukdar Avatar answered Sep 21 '22 08:09

Nipun Talukdar