Return-Path: X-Original-To: apmail-zookeeper-bookkeeper-user-archive@minotaur.apache.org Delivered-To: apmail-zookeeper-bookkeeper-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CF8E1952C for ; Wed, 30 May 2012 08:06:02 +0000 (UTC) Received: (qmail 87144 invoked by uid 500); 30 May 2012 08:06:02 -0000 Delivered-To: apmail-zookeeper-bookkeeper-user-archive@zookeeper.apache.org Received: (qmail 87036 invoked by uid 500); 30 May 2012 08:06:00 -0000 Mailing-List: contact bookkeeper-user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bookkeeper-user@zookeeper.apache.org Delivered-To: mailing list bookkeeper-user@zookeeper.apache.org Received: (qmail 86992 invoked by uid 99); 30 May 2012 08:05:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 08:05:58 +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 stones.gao@gmail.com designates 209.85.213.42 as permitted sender) Received: from [209.85.213.42] (HELO mail-yw0-f42.google.com) (209.85.213.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2012 08:05:52 +0000 Received: by yhfq11 with SMTP id q11so2919805yhf.15 for ; Wed, 30 May 2012 01:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=K9z91SNrGeLQL6oOaKt34hpe0fVanlTPU0aKxpBLXSA=; b=0TWEsurhcfS4uXehOEkv2nKB+S+iXF73hA6KiHN5dgs439eSG6lwByWNG+NkOpP+f2 gl3+UV8BKPeAn54zMuAKEecJpXLxnUhDT0DUUo9xqB4JeHaAbu2I3TaH8V8PWjOjgKFD zynJLLpyY0WjocC/7DF/fdppCHbMUIX9iV4WCKL5+RskLcEMVokstqTI9EZI2aODL/HT UebyZv2UbP3STBpRbCarIgkGypYW3VC2Lvt3EGvS+RXLf7V6G4ArsiJqWvYjhMmERYYP 57UbyNO8Y75LQFpMRUOzhLU8CSvcut3iUGHBURCDJm2r+Zh2kUGTNcZ8eHaBjkGpE/PK fy/g== MIME-Version: 1.0 Received: by 10.50.219.226 with SMTP id pr2mr9774370igc.51.1338365131136; Wed, 30 May 2012 01:05:31 -0700 (PDT) Received: by 10.64.81.103 with HTTP; Wed, 30 May 2012 01:05:31 -0700 (PDT) Date: Wed, 30 May 2012 16:05:31 +0800 Message-ID: Subject: Is there any way to set a string name for a ledger and how to do checkpoint ? From: Stone To: bookkeeper-user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=f46d042dfcd5389e9b04c13c6a41 X-Virus-Checked: Checked by ClamAV on apache.org --f46d042dfcd5389e9b04c13c6a41 Content-Type: text/plain; charset=ISO-8859-1 Hello, I am new to BookKeeper. Played with the BookKeeper API, I can create a ledger like the following: val lh = client.createLedger(3, 2, BookKeeper.DigestType.CRC32, "foobar". getBytes); and open an existing one with : val lh2 = client.openLedger(ledgerId, BookKeeper.DigestType.CRC32, "foobar".getBytes); but it seems there's no way to give ledger a string name (or ledger id manually) like a name for a log file. Another the question is how can I do checkpointing using BookKeeper ? What I need is like write WAL to ledger when the old changes applied I can call ledger.checkPoint() // which can delete old log entries in a certain ledger. Any suggestions ? Thanks & Best Regards, Stone --f46d042dfcd5389e9b04c13c6a41 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

I am new to BookKeeper. Played with the BookKeeper API, I ca= n create a ledger=A0 like the following:

=A0 val
= lh =3D client.createLedger(3, 2, BookKeeper.DigestType.CRC32, = "foobar".getBytes);

and open an existing one with :

val lh2 =3D client.openLedger(ledgerId, BookKeeper.= DigestType.CRC32, "foobar".getBytes);<= /div>


but it seems there's no way to give ledger a string name = (or ledger id manually) like a name for a log file.=A0

Another the = question is how can I do checkpointing using BookKeeper ?=A0 What I need is= like write WAL to ledger when the old changes applied I can call
=A0
=A0 ledger.checkPoint()=A0 // which can delete old log entries in a= certain ledger.


Any suggestions ?

Thanks & Best Regards,
Stone

--f46d042dfcd5389e9b04c13c6a41--