There are a couple ways you can do this. The first is the small hammer
assuming ZK is using /hbase you can log into the ZK from a ZK node using
/usr/lib/zookeeper/bin/zkCli.sh once you are in the shell you can then
execute a rmr /hbase and this will remove all the HBase data except the id
of the ZK node. Please make sure HBase is shut down.
There is a REALLY big hammer, some may call is a sledge hammer but you
can delete the ZK data dir. Go to each ZK node and from the shell as root
execute a rm -rf /<path to zk data> I believe the default is
/var/lib/zookeeper/version-2. Again this is not recommended and you should
have both HBase and ZK shut down for this.
On Fri, Nov 30, 2012 at 8:42 PM, Stephen Boesch <[EMAIL PROTECTED]> wrote:
> It is my intention to clean the zookeeper info, since getting questionable
> behavior in hbase.
> what is the process to view/clear the data (hbase..) in zookeeper?
> To view it i tried something like:
> java -cp zookeeper.jar:lib/*:conf org.apache.zookeeper.ZooKeeperMain ls /
> I get an output of
> Connecting to localhost:2181
> log4j:WARN No appenders could be found for logger
> log4j:WARN Please initialize the log4j system properly.
> WatchedEvent state:SyncConnected type:None path:null
> [hbase, zookeeper]
> I"m not sure how to get more specific info (using /hbase for example
> results in same info..)
> Also: how to remove all of the hbase related data in zookeeper ?
Customer Operations Engineer, Cloudera