Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1A612200B5E for ; Wed, 10 Aug 2016 13:31:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1914B160A93; Wed, 10 Aug 2016 11:31:42 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 33E92160A90 for ; Wed, 10 Aug 2016 13:31:41 +0200 (CEST) Received: (qmail 70485 invoked by uid 500); 10 Aug 2016 11:31:39 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 70475 invoked by uid 99); 10 Aug 2016 11:31:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2016 11:31:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 035BCC6779 for ; Wed, 10 Aug 2016 11:31:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.88 X-Spam-Level: * X-Spam-Status: No, score=1.88 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_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id vdleGBYllsnX for ; Wed, 10 Aug 2016 11:31:36 +0000 (UTC) Received: from mail-yw0-f169.google.com (mail-yw0-f169.google.com [209.85.161.169]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4C98C5FBA2 for ; Wed, 10 Aug 2016 11:31:36 +0000 (UTC) Received: by mail-yw0-f169.google.com with SMTP id r9so23490832ywg.0 for ; Wed, 10 Aug 2016 04:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=oB6YZ4WAE4v0EkUt6+0/WyRF44rSdxs3PLFhFJvSai0=; b=z35EbyF9ZLspsrcd2EJqa1t+EEFr6IsHiBNMUGKsWL0TmvCaT7FRAgg7pSldEoTZPn +w7+39gdPh61LcglFr5+IG5utjEgc3C+rg0Vb+ivXJ9Uwap6hvRZRqKPPc7vQq8+WNuX hdViPIDMszeSlPTeyAk/K/iU6VPhpuHdp3mMMv1EAhO2d1TKTE2N0IgOsT5u/ozrRGmq PLt1x/z6v11RJYckEuWdwIwkHTjeLRAR1DkSUDIR7qX/YKOkqWcUUMJjLUbI3kVCE+CR O1nJShHkeyR8vQtadJEazER73nx/DLkDummHAWKS+8QfajAEU8hT4WzscttnbokaNl+N Rsww== 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:from:date :message-id:subject:to; bh=oB6YZ4WAE4v0EkUt6+0/WyRF44rSdxs3PLFhFJvSai0=; b=cOC35J8bRWYHOYxBAIeVS64vDGciIqpHF8901m3sysSmHm0o4PEAp9uoi2D8qHoFiC 0WNaY9m6R6lPTI+g/Y/IEoNYEpEH+c5Q+PVH1fr4K/sIFgHxAnHgNVnO0M0Zs8QjjGoO N6eo/WbHxe+eIMlu7/65tdIopF7SOazBYMuVvUBw1J5hKTRA7omLnVgWGRBVBoJX/TF8 f5/gwfSSYDkHb19zzpUgdJGi1LDk/nhIspzQbGYvrpkIMlxTrYq0syLGNMMvmkfxQAiC 2GePkSr4mplD7W3BUMj9e9LB6KPgQgRxMSv0ooKnnLijACp213xIQUlYN5fQPgNkPo4F hJIA== X-Gm-Message-State: AEkoous2KLVrYjN0d3dCy595IJK/ddv1Q9ifdvynDKe+/A0CBLqdYPfigeGoSbOqHLXSd+enrO7Cq4Hgb7VZMQ== X-Received: by 10.13.226.15 with SMTP id l15mr2345523ywe.282.1470828695273; Wed, 10 Aug 2016 04:31:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.118.136 with HTTP; Wed, 10 Aug 2016 04:31:14 -0700 (PDT) In-Reply-To: References: From: Paulo Motta Date: Wed, 10 Aug 2016 08:31:14 -0300 Message-ID: Subject: Re: nodetool repair with -pr and -dc To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=001a114fc2d8e846eb0539b5fd67 archived-at: Wed, 10 Aug 2016 11:31:42 -0000 --001a114fc2d8e846eb0539b5fd67 Content-Type: text/plain; charset=UTF-8 On 2.0 repair -pr option is not supported together with -local, -hosts or -dc, since it assumes you need to repair all nodes in all DCs and it will throw and error if you try to run with nodetool, so perhaps there's something wrong with range_repair options parsing. On 2.1 it was added support to simultaneous -pr and -local options on CASSANDRA-7450, so if you need that you can either upgade to 2.1 or backport that to 2.0. 2016-08-10 5:20 GMT-03:00 Anishek Agarwal : > Hello, > > We have 2.0.17 cassandra cluster(*DC1*) with a cross dc setup with a > smaller cluster(*DC2*). After reading various blogs about > scheduling/running repairs looks like its good to run it with the following > > > -pr for primary range only > -st -et for sub ranges > -par for parallel > -dc to make sure we can schedule repairs independently on each Data centre > we have. > > i have configured the above using the repair utility @ > https://github.com/BrianGallew/cassandra_range_repair.git > > which leads to the following command : > > ./src/range_repair.py -k [keyspace] -c [columnfamily name] -v -H localhost > -p -D* DC1* > > but looks like the merkle tree is being calculated on nodes which are part > of other *DC2.* > > why does this happen? i thought it should only look at the nodes in local > cluster. however on nodetool the* -pr* option cannot be used with *-local* according > to docs @https://docs.datastax.com/en/cassandra/2.0/cassandra/tools/ > toolsRepair.html > > so i am may be missing something, can someone help explain this please. > > thanks > anishek > --001a114fc2d8e846eb0539b5fd67 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 2.0 repair -pr option is not supported together with -l= ocal, -hosts or -dc, since it assumes you need to repair all nodes in all D= Cs and it will throw and error if you try to run with nodetool, so perhaps = there's something wrong with range_repair options parsing.

On 2.= 1 it was added support to simultaneous -pr and -local options on CASSANDRA-= 7450, so if you need that you can either upgade to 2.1 or backport that to = 2.0.

2016= -08-10 5:20 GMT-03:00 Anishek Agarwal <anishek@gmail.com>:
Hello,

We have 2.0.17 cassandra cluster(DC1) with a cross dc setup with a = smaller cluster(DC2).=C2=A0 After reading various blogs about schedu= ling/running repairs looks like its good to run it with the following=C2=A0=


-pr for primary range only=C2=A0
-st -et for sub ranges=C2=A0
-par for parallel=C2=A0
-dc to make sure we can schedule repairs independently on each Data = centre we have.=C2=A0

i have configured the above = using the repair utility @ https://github.com/BrianGallew= /cassandra_range_repair.git

which leads to the= following command :

./src/range_repair.py -k [key= space] -c [columnfamily name] -v -H localhost -p -D DC1

but looks like the merkle tree is being calculated on node= s which are part of other DC2.

why d= oes this happen? i thought it should only look at the nodes in local cluste= r. however on nodetool the -pr option cannot be used with -local<= /i>=C2=A0according to docs @https://docs.dat= astax.com/en/cassandra/2.0/cassandra/tools/toolsRepair.html

so i am may be missing something, can someone help = explain this please.

thanks
anishek

--001a114fc2d8e846eb0539b5fd67--