Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-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 AC0DD18EF9 for ; Sun, 6 Sep 2015 12:27:40 +0000 (UTC) Received: (qmail 51739 invoked by uid 500); 6 Sep 2015 12:27:38 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 51701 invoked by uid 500); 6 Sep 2015 12:27:37 -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 51684 invoked by uid 99); 6 Sep 2015 12:27:37 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2015 12:27:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5AA741A0732 for ; Sun, 6 Sep 2015 12:27:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.001 X-Spam-Level: **** X-Spam-Status: No, score=4.001 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_HTMLNOISE=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id VXT6mUnJACnp for ; Sun, 6 Sep 2015 12:27:25 +0000 (UTC) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 6941720313 for ; Sun, 6 Sep 2015 12:27:24 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so57749627wic.0 for ; Sun, 06 Sep 2015 05:27:18 -0700 (PDT) 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=Hp9kiLAmvKL3l/KIaqF2uSbIeQPch5PPqfH34Bujz8o=; b=UFHuTSmLrv4IcHdwHSHBlzXPFZG1sEG8/ZofhfHOyj+tICl3nmbh4mJB/xA1UynPIC tVJQhsCs/egPNKnTIemGqyJ1xAFvbhrt9NB6RvJ3a3V2CZkLiYPxbb9H9t+p0OZ2VjPt wueayXTFiIS0CavRbu/XZn3KTgLdiFyUH3zwUUls8CRimzgUzJCZm2p/Q4oLAmv/fCvg XJJxsJ865HPhmmymZa8ac9VR0YkH3gb35eIlHvWqJvjZsIyX4TjSlChut8aD2cH/zMcO aa5Q0ROalfx0X6aCi3IeEves44KXTVSxDLt2EKNpRwuWkUOJdnkVIk6qFXvnqCPietq8 NyOw== X-Gm-Message-State: ALoCoQkxhfJ1Zolc8dKj5T05UfChsN9eZInK5gCFhqzffB7zMQTFcUb6omuAkMrERg8+W3MEW3gJ MIME-Version: 1.0 X-Received: by 10.180.37.201 with SMTP id a9mr25521722wik.83.1441542438035; Sun, 06 Sep 2015 05:27:18 -0700 (PDT) Received: by 10.28.87.208 with HTTP; Sun, 6 Sep 2015 05:27:17 -0700 (PDT) In-Reply-To: <55E9939F.5030507@ericsson.com> References: <55E9939F.5030507@ericsson.com> Date: Sun, 6 Sep 2015 15:27:17 +0300 Message-ID: Subject: Re: Repair documentation From: Tzach Livyatan To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=e89a8f50355cf2bfc9051f13409c --e89a8f50355cf2bfc9051f13409c Content-Type: text/plain; charset=UTF-8 On Fri, Sep 4, 2015 at 3:50 PM, Marcus Olsson wrote: > Hi, > > While checking the repair documentation at > http://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsRepair.html > I noticed the line *Use the **-hosts** option to list the good nodes to > use for repairing the bad nodes. Use **-h** to name the bad nodes.* and > below there was an example: > > *nodetool repair -pr -hosts **10.2**.**2.20* *10.2**.**2.21* which should > do *A partitioner range repair of the bad partition on current node using > the good partitions on 10.2.2.20 or 10.2.2.21* according to the > documentation. > Look like -pr and -hosts does not mix, and the documentation is not up to date https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/tools/nodetool/Repair.java#L90 > > Is this correctly documented because I don't seem to be getting the right > results when trying. > > I started up a C* 2.1.9 CCM cluster and when running > > * repair -h 127.0.0.1 -p 7100 repair -pr 127.0.0.2 127.0.0.3* > > I get the error: > > *nodetool: Keyspace [127.0.0.3] does not exist.* > > --------------- > > When I run it as > > * nodetool -h 127.0.0.1 -p 7100 repair -pr -hosts 127.0.0.2* > > instead it gives me the error: > *java.lang.RuntimeException: Primary range repair should be performed on > all nodes in the cluster.* > * at > org.apache.cassandra.tools.NodeTool$Repair.execute(NodeTool.java:1873)* > * at > org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:288)* > * at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:202)* > > --------------- > > I even tried running it as > > > * repair -h 127.0.0.1 -p 7100 repair -hosts 127.0.0.2 * > and then I get > *The current host must be part of the repair* > > --------------- > > This seems like either bug(s) or a documentation mistake? > > There is also a line in > http://docs.datastax.com/en/cassandra/2.1/cassandra/operations/ops_repair_nodes_c.html > which says that *You can specify which nodes have the good data for > replacing the outdated data.* which seems to be related(and also the > reason I tried it out)? > > BR > Marcus Olsson > --e89a8f50355cf2bfc9051f13409c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Fri, Sep 4, 2015 at 3:50 PM, Marcus Olsson <marcus.olsson@= ericsson.com> wrote:
=20 =20 =20
Hi,

While checking the repair documentation at http://docs.datastax.com/en/cassandra/2.1= /cassandra/tools/toolsRepair.html I noticed the line Use the -hosts<= /b> option to list the good nodes to use for repairing the bad nodes. Use -h<= /span> to name the bad nodes. and below there was an example:

nodetool repair -pr -hosts 10.2= .2.20 = 10.2.2.21 which should do A partitioner range repair of the bad partition on current node using the good partitions on 10.2.2.20 or 10.2.2.21 according to the documentation.
Look like -pr and -hosts does not mix, and the document= ation is not up to date

=C2= =A0

Is this correctly documented because I don't seem to be getting the right results when trying.

I started up a C* 2.1.9 CCM cluster and when running

repair -h 127.0.0.1 -p 7100 repair -pr 127.0.0.2 127.0.0.3
<= /i>


I get the error:

nodetool: Keyspace [127.0.0.3] does not exist.


---------------

When I run it as

nodetool -h 127.0.0.1 -p 7100 repair -pr -hosts 127.0.0.2


instead it gives me the error:
java.lang.RuntimeException: Primary range repair should be performed on all nodes in the cluster.
=C2=A0=C2=A0=C2=A0 at org.apache.cassandra.tools.NodeTool$Repair.execute(NodeTool.java:1873= )
=C2=A0=C2=A0=C2=A0 at org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:288= )
=C2=A0=C2=A0=C2=A0 at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:202)

---------------

I even tried running it as

repair -h 127.0.0.1 -p 7100 repair -hosts 127.0.0.2

and then I get
The current host must be part of the repair

---------------

This seems like either bug(s) or a documentation mistake?

There is also a line in http://docs.datastax.com/en/c= assandra/2.1/cassandra/operations/ops_repair_nodes_c.html which says that You can specify which nodes have the good data for replacing the outdated data. which seems to be related(and also the reason I tried it out)?

BR
Marcus Olsson

--e89a8f50355cf2bfc9051f13409c--