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 9005F1023D for ; Mon, 24 Jun 2013 05:13:49 +0000 (UTC) Received: (qmail 69557 invoked by uid 500); 24 Jun 2013 05:13:47 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 69170 invoked by uid 500); 24 Jun 2013 05:13:44 -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 69162 invoked by uid 99); 24 Jun 2013 05:13:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 05:13:43 +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 agundabattula@threatmetrix.com designates 98.129.35.7 as permitted sender) Received: from [98.129.35.7] (HELO server505.appriver.com) (98.129.35.7) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 05:13:37 +0000 X-Note-AR-ScanTimeLocal: 6/24/2013 12:13:16 AM X-Policy: GLOBAL - threatmetrix.com X-Primary: agundabattula@threatmetrix.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: @threatmetrix.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNKNOWN->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.35.1 X-Note-Reverse-DNS: X-Note-Return-Path: agundabattula@threatmetrix.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G319 G320 G321 G322 G326 G327 G338 G434 X-Note: Encrypt Rule Hits: X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.35.1] (HELO smtp.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.4.8) with ESMTPS id 320068150 for user@cassandra.apache.org; Mon, 24 Jun 2013 00:13:16 -0500 Received: from MBX30.exg5.exghost.com ([169.254.1.69]) by HT05.exg5.exghost.com ([98.129.23.150]) with mapi; Mon, 24 Jun 2013 00:13:15 -0500 From: Ananth Gundabattula To: "user@cassandra.apache.org" Date: Mon, 24 Jun 2013 00:13:13 -0500 Subject: Merge two clusters into one - renaming an existing cluster Thread-Topic: Merge two clusters into one - renaming an existing cluster Thread-Index: Ac5wmYe3RqL+xB8OSQ2Tv1YkVQ9jIw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.4.130416 acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_CDEE128912057agundabattulathreatmetrixcom_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_CDEE128912057agundabattulathreatmetrixcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Everybody, I am trying to merge two clusters into a single cluster ( the rationale bei= ng easier administration apart from better load balancing etc) The plan is to rename a cluster (QAPERF1) as the same name as the second cl= uster (QAPERF2). Then alter the cassandra-toppology.properties and make the= m appear as different Dcs. Then finally alter replication settings and rebu= ild nodes of course after changing the seeds. It is made sure that the sche= ma is same across the two clusters. This is a test on apache cassandra 1.2= .4. In the process of renaming an existing cluster, I have followed the instru= ctions here : http://wiki.apache.org/cassandra/FAQ#clustername_mismatch I get the following when restarting the node after restarting the first nod= e after cluster name change ( The other nodes are yet to be restarted). It = looks like the old cluster name has not taken into effect in spite of compl= eting the flush as mentioned in the wiki. ERROR [main] 2013-06-24 04:44:35,812 CassandraDaemon.java (line 222) Fatal = exception during initialization org.apache.cassandra.exceptions.ConfigurationException: Saved cluster name = QAPERF1 !=3D configured name QAPERF2 at org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:447) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:= 218) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.ja= va:411) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:4= 54) In the process of reverting it back, I changed the configuration file back = to have the old cluster name and now I get this exception. ERROR [main] 2013-06-24 04:48:34,746 CassandraDaemon.java (line 428) Except= ion encountered during startup java.util.NoSuchElementException at java.util.ArrayList$Itr.next(ArrayList.java:794) at org.apache.cassandra.db.SystemTable.upgradeSystemData(SystemTable.java:1= 64) at org.apache.cassandra.db.SystemTable.finishStartup(SystemTable.java:98) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:= 317) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.ja= va:411) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:4= 54) Can experts please advise what is the best way to rename a cluster in case = I want to change it for version 1.2.4 ? Thanks for your time. Regards, Ananth --_000_CDEE128912057agundabattulathreatmetrixcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hello Everybody,


I am trying to merge two clu= sters into a single cluster ( the rationale being easier administration apa= rt from better load balancing etc) 


The plan is to rename a clust= er (QAPERF1) as the same name as the second cluster (QAPERF2). Then alter t= he cassandra-toppology.properties and make them appear as different Dcs. Th= en finally alter replication settings and rebuild nodes of course after cha= nging the seeds. It is made sure that the schema is same across the  t= wo clusters. This is a test on apache cassandra 1.2.4. 


In the pr= ocess of  renaming an existing cluster, I have followed the instructio= ns here : http://wiki.apache.org/cassandra/FAQ#clustername_mismatch

=


I get= the following when restarting the node after restarting the first node aft= er cluster name change ( The other nodes are yet to be restarted). It looks= like the old cluster name has not taken into effect in spite of completing= the flush as mentioned in the wiki. 


ERROR [main] = 2013-06-24 04:44:35,812 CassandraDaemon.java (line 222) Fatal exception dur= ing initialization

org.apache.cassandra.exceptions.Configu= rationException: Saved cluster name QAPERF1 !=3D configured name QAPERF2

at org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:44= 7)

at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDa= emon.java:218)

at org.apache.cassandra.service.CassandraDaemon.activ= ate(CassandraDaemon.java:411)

at org.apache.cassandra.service.Cassan= draDaemon.main(CassandraDaemon.java:454)


<= font class=3D"Apple-style-span" color=3D"#365f91">In the process of reverti= ng it back, I changed the configuration file back to have the old cluster n= ame and now I get this exception. 


ERROR [main] 2= 013-06-24 04:48:34,746 CassandraDaemon.java (line 428) Exception encountere= d during startup

java.util.NoSuchElementException

a= t java.util.ArrayList$Itr.next(ArrayList.java:794)

at org.apache.cas= sandra.db.SystemTable.upgradeSystemData(SystemTable.java:164)

at o= rg.apache.cassandra.db.SystemTable.finishStartup(SystemTable.java:98)

at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.jav= a:317)

at org.apache.cassandra.service.CassandraDaemon.activate(Cass= andraDaemon.java:411)

at org.apache.cassandra.service.CassandraDaemo= n.main(CassandraDaemon.java:454)


Can= experts please advise what is the best way to rename a cluster in case I w= ant to change it for version 1.2.4 ? Thanks for your time. 


Regards,

Ananth 

--_000_CDEE128912057agundabattulathreatmetrixcom_--