Some things you might try: - backport the #7450 patch to 2.0 and have a custom Cassandra build with that fix (unfortunately the patch is not currently mergeable) - upgrade to 2.1 if you can - create a program that calculates primary ranges of each node from the ring, and execute repairs on them with --local, -start-token and --end-token options of nodetool
2015-05-18 22:01 GMT-03:00 Anuj Wadehra <anujw_2...@yahoo.co.in>: > Ok. So, does that mean that -pr is not available in 2.0.x untill you are > willing to pay additional cost for cross DC repair (which I think is not > practical)? > > > Thanks > > Anuj > > Sent from Yahoo Mail on Android > > From:"Yuki Morishita" <mor.y...@gmail.com> > Date:Tue, 19 May, 2015 at 1:06 am > Subject:Re: Repair with -pr and -local after CASSANDRA-7450 > > CASSANDRA-7450 is for version 2.1.1 and higher. So it is not available in > 2.0.x. > > > On Mon, May 18, 2015 at 1:43 PM, Anuj Wadehra <anujw_2...@yahoo.co.in> > wrote: > > Hi, > > This is regarding execution of repair -pr in local DC. > > CASSANDRA-7313 disabled using pr with local option. Later, > CASSANDRA-7450 allowed it. But when I look at the code of Cassandra 2.0.13, > I see that using pr with local is still illegal: > > How to do Repair with pr and local DC option in 2.0.13/2.0.14 ? We dont > want to run full repair on each node of a DC. Moreover, we dont want to > incur cross DC repair. > > > > public void forceKeyspaceRepairPrimaryRange(final String keyspaceName, > boolean isSequential, boolean isLocal, final String... columnFamilies) > throws IOException > > { > > // primary range repair can only be performed for whole cluster. > > // NOTE: we should omit the param but keep API as is for now. > > if (isLocal) > > { > > throw new IllegalArgumentException("You need to run primary > range repair on all nodes in the cluster."); > > } > > > > forceKeyspaceRepairRange(keyspaceName, > getLocalPrimaryRanges(keyspaceName), isSequential ? > RepairParallelism.SEQUENTIAL : RepairParallelism.PARALLEL, false, > columnFamilies); > > } > > > > > > ThanksAnuj > > > > > > -- > Yuki Morishita > t:yukim (http://twitter.com/yukim > > ) > >