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 D66F2EB14 for ; Thu, 29 Nov 2012 19:57:04 +0000 (UTC) Received: (qmail 18240 invoked by uid 500); 29 Nov 2012 19:57:02 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 18212 invoked by uid 500); 29 Nov 2012 19:57:01 -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 18201 invoked by uid 99); 29 Nov 2012 19:57:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 19:57:01 +0000 X-ASF-Spam-Status: No, hits=2.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLYTO_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.139.212.126] (HELO nm22-vm0.bullet.mail.bf1.yahoo.com) (98.139.212.126) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 19:56:50 +0000 Received: from [98.139.212.145] by nm22.bullet.mail.bf1.yahoo.com with NNFMP; 29 Nov 2012 19:56:28 -0000 Received: from [98.139.215.250] by tm2.bullet.mail.bf1.yahoo.com with NNFMP; 29 Nov 2012 19:56:28 -0000 Received: from [127.0.0.1] by omp1063.mail.bf1.yahoo.com with NNFMP; 29 Nov 2012 19:56:28 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 535431.10692.bm@omp1063.mail.bf1.yahoo.com Received: (qmail 73920 invoked by uid 60001); 29 Nov 2012 19:56:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1354218988; bh=hdqNBx6EVRLQHrm4316EB5TCm5Av6AL8T09seOL8sVQ=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=TeKxmqwIj3qU+pMVd4LWhMPV4XoKWdjl8+LaQUcuw4f0dsjWCAHDtYpXJ0pGnpcNJeyEOnIAtBVioN84rq27kXkg+g7tWZvuPeO5WcQ1sEur8tWMvt+E7Gu2IuQfR8H7fV7UAnKnljULBndO/EeZCSTcPnlbr2bQ69CR2OXXaAM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=tkMEdlZ3+CXk1lJPB4KD49Edv28LuIQyg6UqMnvoN5QEjX8XBmoYl34hSmaczqI4IAGvHx9VN2nwZmF3GTXV0ingZ27ez1PxmPc1iAgMjdh52mcJMY+AhZGJkn1xt+RQmBk0J1zHk+n9csGhLhLx8gb/mJNz0rKZXqoez3IFNsg=; X-YMail-OSG: 0Bqhll8VM1ldCfvy8VUlrfv0y6h7nXIqFEuIRrxc3ElmG10 36Wj0P9w.GPhrJXvHiFXDiMLsq0uX0NvQ1V_V3bQymKjROF7fxugdFf_kvC1 EJCbwEljZJ71wkpGFL.vMf4NLtDfPc765yRLl6L772kgA47kccav3zaEblbZ RJSg3j1FyNIhMkiTOX0wths5sBEyH0jOO2vVqq2QSVcJSATFPQaSieGGWJqh n.NNPPpqRh_mV8.oUNRhoQ8e5H85qzRZvCSsqwY7buj.c8ZyKZ44nsLKmmFt LM2qmtFLiE36JymVEjLcGthf_iablIc0n7VSDMmqORZUERuc32F97idwLaMG ul8hQdxQYqibv4QXfwoXRQHoul0x_Bq1lX_ZT_7M0uLCtYaZaRWZcML7lou_ XdN5y92MMU665nc_6EsMy3oPumsQXtZwiSmDeiUWUCO8lgJVv1X.KNh4cE5L DOyvDG_28kLLecc8MOApk8wm7gVmomcBdnX0OMsVVdrqEuhpPx32UPqSi3RZ NWBRO4_nsnDMFpLnIGLdqWJrH1GeitP7mUzspVzGAQB7cHw7je.8_tn7JwTa refaYHdVKvKoQZkcObynRjA39qtvMYtDYgIMW8AKHgCS9lfVM1yyzKYN86XF Exu81UQF8A.AxCA-- Received: from [199.21.86.226] by web160902.mail.bf1.yahoo.com via HTTP; Thu, 29 Nov 2012 11:56:28 PST X-Rocket-MIMEInfo: 001.001,SGksCkkgYW0gdHJ5aW5nIHRvIHJlbmFtZSBhIGNsdXN0ZXIgYnkgZm9sbG93aW5nIHRoZSBpbnN0cnVjdGlvbiBvbiBXaWtpOgoKQ2Fzc2FuZHJhIHNheXMgIkNsdXN0ZXJOYW1lIG1pc21hdGNoOiBvbGRDbHVzdGVyTmFtZSAhPSBuZXdDbHVzdGVyTmFtZSIgYW5kIHJlZnVzZXMgdG8gc3RhcnQKVG8gcHJldmVudCAKb3BlcmF0b3IgZXJyb3JzLCBDYXNzYW5kcmEgc3RvcmVzIHRoZSBuYW1lIG9mIHRoZSBjbHVzdGVyIGluIGl0cyBzeXN0ZW0gCnRhYmxlLiAgSWYgeW91IG5lZWQgdG8gcmVuYW1lIGEgY2x1c3QBMAEBAQE- X-Mailer: YahooMailWebService/0.8.127.475 Message-ID: <1354218988.32304.YahooMailNeo@web160902.mail.bf1.yahoo.com> Date: Thu, 29 Nov 2012 11:56:28 -0800 (PST) From: Wei Zhu Reply-To: Wei Zhu Subject: Rename cluster To: Cassandr usergroup MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="498176207-1263010952-1354218988=:32304" X-Virus-Checked: Checked by ClamAV on apache.org --498176207-1263010952-1354218988=:32304 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0AI am trying to rename a cluster by following the instruction on Wiki:= =0A=0ACassandra says "ClusterName mismatch: oldClusterName !=3D newClusterN= ame" and refuses to start=0ATo prevent =0Aoperator errors, Cassandra stores= the name of the cluster in its system =0Atable. If you need to rename a c= luster for some reason, you can: =0APerform these steps on each node: =0A= =091. Start the cassandra-cli connected locally to this node. =0A=092. Run = the following: =0A=091. use system; =0A=092. set LocationInfo[utf8('L')][ut= f8('ClusterName')]=3Dutf8(''); =0A=093. exit; =0A=093. Ru= n nodetool=A0flush on this node. =0A=094. Update the cassandra.yaml file fo= r the cluster_name as the same as 2b). =0A=095. Restart the node. =0AOnce a= ll nodes have been had this operation performed and restarted, nodetool=A0r= ing should show all nodes as UP.=0A=0AGet the following error:=0AConnected = to: "Test Cluster" on 10.200.128.151/9160=0AWelcome to Cassandra CLI versio= n 1.1.6=0A=0AType 'help;' or '?' for help.=0AType 'quit;' or 'exit;' to qui= t.=0A=0A[default@unknown] use system;=0AAuthenticated to keyspace: system= =0A[default@system] set LocationInfo[utf8('L')][utf8('ClusterName')]=3Dutf8= ('');=A0=0Asystem keyspace is not user-modifiable= .=0AInvalidRequestException(why:system keyspace is not user-modifiable.)=0A= at org.apache.cassandra.thrift.Cassandra$insert_result.read(Cassandra.java:= 15974)=0Aat org.apache.thrift.TServiceClient.receiveBase(TServiceClient.jav= a:78)=0Aat org.apache.cassandra.thrift.Cassandra$Client.recv_insert(Cassand= ra.java:797)=0Aat org.apache.cassandra.thrift.Cassandra$Client.insert(Cassa= ndra.java:781)=0Aat org.apache.cassandra.cli.CliClient.executeSet(CliClient= .java:909)=0Aat org.apache.cassandra.cli.CliClient.executeCLIStatement(CliC= lient.java:222)=0Aat org.apache.cassandra.cli.CliMain.processStatementInter= active(CliMain.java:219)=0Aat org.apache.cassandra.cli.CliMain.main(CliMain= .java:346)=0A=0AI have to remove the data directory in order to change the = cluster name. Luckily it's my testing box, so no harm. Just wondering what = has been changed not to allow the modification through cli? What is the way= of changing the cluster name without wiping out all the data now?=0A=0ATha= nks.=0A-Wei=A0 --498176207-1263010952-1354218988=:32304 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
I am trying t= o rename a cluster by following the instruction on Wiki:

=

Cassandra says "ClusterName mismatch: = oldClusterName !=3D newClusterName" and refuses to start

=0A
To prevent =0Aope= rator errors, Cassandra stores the name of the cluster in its system =0Atab= le. If you need to rename a cluster for some reason, you can: <= /span>
Perform these steps on each node:
  1. Start the cassandra-cli connected = locally to this node.
    <= /li>
  2. Run the following:
  3. use system; =
  4. set LocationInfo[utf8('L')][utf8('= ClusterName')]=3Dutf8('<new cluster name>');
  5. exit;
  • Run nodetool flush on t= his node.
  • Upda= te the cassandra.yaml file for the cluster_name as the same as 2b).
  • Restart the node.
  • Once all nodes have been had this = operation performed and restarted, nodetool rin= g should show all nodes as UP.

    Get the following error:
    =
    Connected to: "Test C= luster" on 10.200.128.151/9160
    Welcome to Cassandra CLI version 1.1.6
    <= br>
    Type 'help;' or '?' for help.
    Type 'quit;' or 'exit;' to quit.
    [defaul= t@unknown] use system;
    Authenticated to keyspace: system
    [default@syst= em] set LocationInfo[utf8('L')][utf8('ClusterName')]=3Dutf8('<General Se= rvices Cluster>'); 
    system keyspace is not user-modifiable.
    =
    InvalidRequestException(why:system keyspace is not user-modifiable.)
    <= span class=3D"Apple-tab-span" style=3D"white-space:pre">=09at org.ap= ache.cassandra.thrift.Cassandra$insert_result.read(Cassandra.java:15974)
    = =09at org.a= pache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
    =09at org.apache.cas= sandra.thrift.Cassandra$Client.recv_insert(Cassandra.java:797)
    =09at org.apache.cassandra.thrift.Ca= ssandra$Client.insert(Cassandra.java:781)
    =09at org.apache.cassandra.cli.CliClient.e= xecuteSet(CliClient.java:909)
    =09at org.apache.cassandra.cli.CliClient.executeCLISta= tement(CliClient.java:222)
    =09at org.apache.cassandra.cli.CliMain.processStatementInteractive(CliMain.= java:219)
    =09at org.apache.cassandra.cli.CliMain.main(CliMain.java:346)

    =
    I h= ave to remove the data directory in order to change the cluster name. Lucki= ly it's my testing box, so no harm. Just wondering what has been changed no= t to allow the modification through cli? What is the way of changing the cl= uster name without wiping out all the data now?

    Thanks.
    -Wei 
    --498176207-1263010952-1354218988=:32304--