Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-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 16D05184C6 for ; Sun, 21 Feb 2016 14:39:25 +0000 (UTC) Received: (qmail 80782 invoked by uid 500); 21 Feb 2016 14:39:24 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 80725 invoked by uid 500); 21 Feb 2016 14:39:24 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 80709 invoked by uid 99); 21 Feb 2016 14:39:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Feb 2016 14:39:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 58547C0474 for ; Sun, 21 Feb 2016 14:39:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id tRZNge4SmhYx for ; Sun, 21 Feb 2016 14:39:22 +0000 (UTC) Received: from mail-yk0-f174.google.com (mail-yk0-f174.google.com [209.85.160.174]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4AAE25F1A0 for ; Sun, 21 Feb 2016 14:39:21 +0000 (UTC) Received: by mail-yk0-f174.google.com with SMTP id z13so52368660ykd.0 for ; Sun, 21 Feb 2016 06:39:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=HnOjsWMGqe4+preAV/lJAxqM0cM+rGTHl/DUxrwC3Ak=; b=AAGGVcZtfE2VohsfNo0iyXTWc+RVvEQZu+fMqUPBVI8zN0CQzuMo48XfPCT5KkX8ql n6pDZ/BHihqQPJncw5sc9cP5Buv8sm6QBdUDGpLB/mnT7ynbt6S+KWHIp0CqiQCbMfsE 3y0jVRWl3MxTY80fjsA00NNXLQy5qF9mWcIhYKRkX8arEC22wIFUfVCkK+md7cg0WARX eMADFTpMfNl0QdtArl2Lhf+8iUU/Du/eByne0xvtf+OSXAVRoXnEzzWyx0dcEF5GAyzd HCQXoOrw214v/Shp4MYfsizwdp2hAyJQGjgT/rvEH4ZWhhEMxzRIvnEAXt+AfCDPJk82 N25g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=HnOjsWMGqe4+preAV/lJAxqM0cM+rGTHl/DUxrwC3Ak=; b=jPOk7vGSjt+Awel/JSGNOF9qoBjxIvEaC8bEBFR+cKpsX5lu8UouCk8Bdxhbx0vT8o F5/Baq2hUI88W6gHukrRLUPyXgkaRjxU1XoTMaZYmgfjjrFyE1fUqq2xAiEZI0ncWlPM VpMPvZm0Vc0fhGi14Hnvv96U7CWxmQ2Kc6qlSNmY8jBbmMlSeziGRIrw73qvjNZJ44uG SBd6sjrx++aNmZ/lJcWfd3dXxJs5fv4w/IGLkMYjCO0ziJLfGyzYSmtutvQKPDyaLOjZ czLn+6oMZuKhNs2vG32jKGBhpVL4DIJpLB7+QWX0Vrk4KrbdFQuHoW9ix7/ID5qHhSQt 2l6w== X-Gm-Message-State: AG10YOTP9hEHhUxnIqRi35FI3wemwj95msfuhiusC5SO1e8wnOdBMKrIn6quuHxwjXQoaSwp7839Y0ldT7cDcQ== MIME-Version: 1.0 X-Received: by 10.37.4.13 with SMTP id 13mr12408405ybe.1.1456065553903; Sun, 21 Feb 2016 06:39:13 -0800 (PST) Received: by 10.37.215.81 with HTTP; Sun, 21 Feb 2016 06:39:13 -0800 (PST) In-Reply-To: References: Date: Sun, 21 Feb 2016 06:39:13 -0800 Message-ID: Subject: Re: How to restore a snapshot after an accidental ZKclenup From: Ted Yu To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a11c064a81c3969052c48ae06 --001a11c064a81c3969052c48ae06 Content-Type: text/plain; charset=UTF-8 The attachment didn't go through. Consider using pastebin. On Sun, Feb 21, 2016 at 12:30 AM, AALISHE wrote: > forgot the attachment > > On Sun, Feb 21, 2016 at 10:29 AM, AALISHE wrote: > >> Hi all, >> >> I have a CDH cluster with ZK 3.4.5 running on 3 nodes ....and one of >> the developers accidentlly ran an API command that does zooKeeperCleanUp >> >> I didnt know before this about ZK needing backups .... so there is no >> backup(s) on-hand. >> >> But I see some kind logs and snapshot files under zookeeper lib/data >> (attached as well) >> >> 65M Feb 19 05:48 log.900000001 >> 18K Feb 19 07:19 snapshot.9000000a0 >> 65M Feb 19 08:14 log.a00000001 >> 18K Feb 19 08:21 snapshot.a00000759 >> 65M Feb 19 08:22 log.b00000001 >> 17K Feb 19 08:27 snapshot.c00000000 >> 2 Feb 19 11:39 acceptedEpoch >> 21K Feb 19 11:39 snapshot.c000016c7 >> 2 Feb 19 11:39 currentEpoch >> 129M Feb 20 04:21 log.c00000001 >> 21K Feb 20 04:21 snapshot.d000184ec >> 65M Feb 20 17:50 log.d000184ed >> 23K Feb 20 17:50 snapshot.d0002bf88 >> 4.0K Feb 20 17:50 . >> 65M Feb 21 03:24 log.d0002bf89 >> >> >> >> this incident happened on *Feb 20 17:50 * .... as you can see the >> snapshot and log files stamped with earlier hour *Feb 20 04:21 *are >> larger insize.... >> >> >> I think these last 2 files might the restore candidates? if Yes ... how >> do I properly restore to that point ?? >> >> >> cheers! >> >> >> > --001a11c064a81c3969052c48ae06--