From user-return-28022-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Thu Aug 9 05:28:54 2012 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 1AC359A80 for ; Thu, 9 Aug 2012 05:28:54 +0000 (UTC) Received: (qmail 12560 invoked by uid 500); 9 Aug 2012 05:28:51 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 12088 invoked by uid 500); 9 Aug 2012 05:28:47 -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 12050 invoked by uid 99); 9 Aug 2012 05:28:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 05:28:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [67.192.241.111] (HELO smtp111.dfw.emailsrvr.com) (67.192.241.111) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 05:28:40 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp21.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 408A4240388; Thu, 9 Aug 2012 01:28:19 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp21.relay.dfw1a.emailsrvr.com (Authenticated sender: rajesh.bawal-AT-orkash.com) with ESMTPSA id 2D6242402A9 for ; Thu, 9 Aug 2012 01:28:17 -0400 (EDT) Message-ID: <50234A70.8030206@orkash.com> Date: Thu, 09 Aug 2012 10:58:16 +0530 From: "rajesh.bawal@orkash.com" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: change cluster name References: <45A854E7-1E69-428E-B46F-5D570822AAAE@gmail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------080502080306070209070500" This is a multi-part message in MIME format. --------------080502080306070209070500 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Tim, I had a similar problem and I sorted it out in the following manner. The cluster name is stored in two places. In he cassandra.yaml and the system keyspace. Everytime you start a node it checks the cluster name in both these places. If changes in the configuration files is not working then i would suggest you delete the files in your system keyspace folder except files like Schema*.*. Please backup the system keyspace before deleting. Regards Rajesh Kumar On Wednesday 08 August 2012 09:04 PM, Tim Dunphy wrote: > Hello, > > Thanks for your replies. > > DNS seems to be properly configured: > > [root@beta:~] #host beta.jokefire.com > beta.jokefire.com has address 198.101.216.47 > > And I forgot the step to use the nodetool flush command. Taking it > from the top again: > > > [default@unknown] use system; > Authenticated to keyspace: system > [default@system] set LocationInfo[utf8('L')][utf8('Test > Cluster')]=utf8('Jokefire Cluster'); > Value inserted. > Elapsed time: 31 msec(s). > [default@system] exit; > > Then I ran nodetool flush: > > [root@beta:/etc/alternatives/cassandrahome] #./bin/nodetool -host > beta.jokefire.com flush > > Then I update the cluster name in the yaml file: > > # The name of the cluster. This is mainly used to prevent machines in > # one logical cluster from joining another. > cluster_name: 'Jokefire Cluster' > > And if I try to start cassandra I see the following error: > > ERROR 11:32:45,278 Fatal exception during initialization > org.apache.cassandra.config.ConfigurationException: Saved cluster name > Test Cluster != configured name Jokefire Cluster > at > org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:299) > at > org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:169) > at > org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:356) > at > org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:107) > > Not sure what else I might be doing wrong here, but it would be great > to hear what someone else thinks of this. > > Thanks! > Tim > > > > > On Wed, Aug 8, 2012 at 12:59 AM, Abhijit Chanda > > wrote: > > have you flushed the node using NODETOOL after renaming the cluster? > > > > > -- > GPG me!! > > gpg --keyserver pool.sks-keyservers.net > --recv-keys F186197B > > --------------080502080306070209070500 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Hi Tim,
I had a similar problem and I sorted it out in the following manner.
The cluster name is stored in two places. In he cassandra.yaml and the system keyspace. Everytime you start a node it checks the cluster name in both these places. If changes in the configuration files is not working then i would suggest you delete the files in your system keyspace folder except files like Schema*.*. 
Please backup the system keyspace before deleting.

Regards
Rajesh Kumar

On Wednesday 08 August 2012 09:04 PM, Tim Dunphy wrote:
Hello,

Thanks for your replies.

DNS seems to be properly configured:

[root@beta:~] #host beta.jokefire.com
beta.jokefire.com has address 198.101.216.47

And I forgot the step to use the nodetool flush command. Taking it from the top again:


[default@unknown] use system;
Authenticated to keyspace: system
[default@system] set LocationInfo[utf8('L')][utf8('Test Cluster')]=utf8('Jokefire Cluster');
Value inserted.
Elapsed time: 31 msec(s).
[default@system] exit;

Then I ran nodetool flush:

[root@beta:/etc/alternatives/cassandrahome] #./bin/nodetool -host beta.jokefire.com flush

Then I update the cluster name in the yaml file:

# The name of the cluster. This is mainly used to prevent machines in
# one logical cluster from joining another.
cluster_name: 'Jokefire Cluster'

And if I try to start cassandra I see the following error:

ERROR 11:32:45,278 Fatal exception during initialization
org.apache.cassandra.config.ConfigurationException: Saved cluster name Test Cluster != configured name Jokefire Cluster
        at org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:299)
        at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:169)
        at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:356)
        at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:107)

Not sure what else I might be doing wrong here, but it would be great to hear what someone else thinks of this.

Thanks!
Tim




On Wed, Aug 8, 2012 at 12:59 AM, Abhijit Chanda <abhijit.chanda0@gmail.com> wrote:
have you flushed the node using NODETOOL after renaming the cluster?



--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B




--------------080502080306070209070500--