Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C475EE70B for ; Sat, 1 Dec 2012 02:56:08 +0000 (UTC) Received: (qmail 8236 invoked by uid 500); 1 Dec 2012 02:56:06 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 8179 invoked by uid 500); 1 Dec 2012 02:56:06 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 8161 invoked by uid 99); 1 Dec 2012 02:56:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 02:56:05 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kevin.odell@cloudera.com designates 209.85.220.169 as permitted sender) Received: from [209.85.220.169] (HELO mail-vc0-f169.google.com) (209.85.220.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 02:55:59 +0000 Received: by mail-vc0-f169.google.com with SMTP id gb23so344403vcb.14 for ; Fri, 30 Nov 2012 18:55:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=Ks0kRAIP3gjRkxxuf6waZQ9ojYX9SQvu01vWjh+SkLU=; b=bANu+OtrsrnGTWcpA+KynuMb+BUeRz8VApeDqdpk+7lMCbosYF7RUXkfiJcPMNuQMI yxBeZvm6OQSPT/p0ejrA4ncMa2pSLHeorky+XxmuruiB+ATNXXT1urhZfA2B0UfU+yMO /5ClI7DiCyGkORbyZqxtpA7Ui5Qdjw81NMHO8lu8C9BEGhisIO9mvoclVX5bf/mklP+f e8ywmb2sTtAXMMv1Df2Sjz7qtkIiqlcOCph3EodKf6o8HlA4jdgq911WSb2dUrtIS4jn bwpQS61covmQmV0Xwybzg9iXUb1IkGhgNtdGYNIsOjUrDNSXAfltujd9CYhTjmFd1jHI owpg== MIME-Version: 1.0 Received: by 10.58.2.71 with SMTP id 7mr2889668ves.42.1354330538829; Fri, 30 Nov 2012 18:55:38 -0800 (PST) Received: by 10.59.0.99 with HTTP; Fri, 30 Nov 2012 18:55:38 -0800 (PST) In-Reply-To: References: Date: Fri, 30 Nov 2012 21:55:38 -0500 Message-ID: Subject: Re: How to clear hbase data in zookeeper From: "Kevin O'dell" To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=047d7b2e76e0ace84804cfc1a60f X-Gm-Message-State: ALoCoQkAHa7MqCGhnKho2ay8ZOmB2QUHDib4H3crHjZ28nJ+ObDr7YOsgeyhFjtCSVJUhsuf8fM2 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b2e76e0ace84804cfc1a60f Content-Type: text/plain; charset=ISO-8859-1 Stephen, 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 / 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 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 / > hscaler-cn001:2181 > > I get an output of > > Connecting to localhost:2181 > log4j:WARN No appenders could be found for logger > (org.apache.zookeeper.ZooKeeper). > log4j:WARN Please initialize the log4j system properly. > > WATCHER:: > > 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 ? > > Thanks! > -- Kevin O'Dell Customer Operations Engineer, Cloudera --047d7b2e76e0ace84804cfc1a60f--