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 7A95210723 for ; Mon, 28 Oct 2013 21:45:34 +0000 (UTC) Received: (qmail 9680 invoked by uid 500); 28 Oct 2013 21:45:31 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 9524 invoked by uid 500); 28 Oct 2013 21:45:31 -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 9516 invoked by uid 99); 28 Oct 2013 21:45:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 21:45:30 +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 (nike.apache.org: domain of nidmgg@gmail.com designates 209.85.128.176 as permitted sender) Received: from [209.85.128.176] (HELO mail-ve0-f176.google.com) (209.85.128.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 21:45:23 +0000 Received: by mail-ve0-f176.google.com with SMTP id jx11so5374654veb.21 for ; Mon, 28 Oct 2013 14:45:03 -0700 (PDT) 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=VLSKmbUx275M1g4uynyEF4uMDuvt1x6c7ziuNYGaZ5Y=; b=lb1GUZzr2jnX+fElv0vjpFJCAdYVrj3Lijjiz888tK97c5aQbxEZ3/5kbN/7enGdEh rayi22S3qJd7wQTwvQSdKa8FmlF2/MkwmIjlTTF2M7R17jAIMuNoUnvxihYxQdDjjLEY ZWMprAtgbpVJAOeA5h4OuaX+NnplYSYORWWZOgmphIj3KR40liyD7kznBtQKlr/QTJs2 0yvbPAATlHzL8z+9PMczlEnauysMDr5wyszqHJxQlqy7c+zCjLsGmXebfXXM2OeChQwn w+pzFOEYywv026HxMOfononpISf56/ehDyBiJvvedm0DfK9NPBaROgq1ykpFUswG0vs3 L1sw== MIME-Version: 1.0 X-Received: by 10.52.33.44 with SMTP id o12mr12660893vdi.7.1382996703107; Mon, 28 Oct 2013 14:45:03 -0700 (PDT) Received: by 10.221.28.136 with HTTP; Mon, 28 Oct 2013 14:45:03 -0700 (PDT) In-Reply-To: References: Date: Mon, 28 Oct 2013 14:45:03 -0700 Message-ID: Subject: Re: HBase Replication Questions From: Demai Ni To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=20cf3079b5f236e0c204e9d403b8 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3079b5f236e0c204e9d403b8 Content-Type: text/plain; charset=ISO-8859-1 1) you can use replication metrics info such as:ageOfLastShippedOp, timeStampsOfLastShippedOp, sizeOfLogQueue ageOfLastAppliedOp, and timeStampsOfLastAppliedOp to figure out the lag. 2) with my best knowledge, the replication won't be together with snapshot. That is the peers won't know there is a restore occurred on primary. So a user must take care it manually. the VerifyReplication tool may be helpful to identify which data (boundary by timestamps) is mismatch, so the copyTable doesn't have to copy the whole table Demai Demai On Mon, Oct 28, 2013 at 12:07 PM, hdev ml wrote: > Hello all, > > I have a couple of questions for HBase. > > 1. Is there any way to find out by how much time the replication is lagging > on the peer cluster or even primary cluster is ok. > 2. Say replication is going on for some time for a table and then you > restore a snapshot on the Primary. Would replication catch up with the > restore snapshot? Or do I have to treat that as replicating from scratch, > meaning > > 1. disable peer > 2. restore snapshot on primary > 3. copyTable upto disable timestamp > 4. enable peer > > > Any help is appreciated. > > Thanks > > Harshad > --20cf3079b5f236e0c204e9d403b8--