Re: change cluster name retaining keypsace

2013-01-14 Thread aaron morton
; Update cassandra.yaml file with new cluster_name > Restart node. > > Thanks, > SC > > From: aa...@thelastpickle.com > Subject: Re: change cluster name retaining keypsace > Date: Thu, 10 Jan 2013 13:21:28 +1300 > To: user@cassandra.apache.org > > To change t

RE: change cluster name retaining keypsace

2013-01-11 Thread S C
pickle.com Subject: Re: change cluster name retaining keypsace Date: Thu, 10 Jan 2013 13:21:28 +1300 To: user@cassandra.apache.org To change the cluster name: 1) Stop all nodes. 2) Delete or move the LocationInfo sstables from /var/log/cassandra/data/system/LocationInfo3) Change the cluster_nam

Re: change cluster name retaining keypsace

2013-01-10 Thread Tim Dunphy
Hey Aaron, That worked beautifully. Thank you sir! Tim On Thu, Jan 10, 2013 at 2:59 PM, Tim Dunphy wrote: > Cool guys.. and thanks. I'll give this a shot. And I do understand it's a > cosmetic issue. It's just an OCD little detail I want to correct before my > cluster starts growing more node

Re: change cluster name retaining keypsace

2013-01-10 Thread Tim Dunphy
Cool guys.. and thanks. I'll give this a shot. And I do understand it's a cosmetic issue. It's just an OCD little detail I want to correct before my cluster starts growing more nodes. :) On Thu, Jan 10, 2013 at 2:39 PM, aaron morton wrote: > I think Arron meant /var/lib/cassandra (by default) >

Re: change cluster name retaining keypsace

2013-01-10 Thread aaron morton
> I think Arron meant /var/lib/cassandra (by default) Yup, sorry. A - Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 10/01/2013, at 4:38 PM, Michael Kjellman wrote: > I think Arron meant /var/lib/cassandra (by default) > >

Re: change cluster name retaining keypsace

2013-01-10 Thread Alain RODRIGUEZ
By the way, The cluster name is only cosmetic. It may not be worth to change it since it induce a downtime and considering the mishandling risk. Alain 2013/1/10 Michael Kjellman > I think Arron meant /var/lib/cassandra (by default) > > Check there (unless you changed you data directories in you

Re: change cluster name retaining keypsace

2013-01-09 Thread Michael Kjellman
I think Arron meant /var/lib/cassandra (by default) Check there (unless you changed you data directories in your cassandra.yaml) On Jan 9, 2013, at 7:36 PM, "Tim Dunphy" mailto:bluethu...@gmail.com>> wrote: Hello, And thanks for your reply! Well so far it's just a single node. So I wouldn't t

Re: change cluster name retaining keypsace

2013-01-09 Thread Tim Dunphy
Hello, And thanks for your reply! Well so far it's just a single node. So I wouldn't think this should be so complicated. But one day hopefully from this node a cluster will grow, but that we shall have to wait and see. At any rate, at /var/log/cassandra I don't see a directory called system. All

Re: change cluster name retaining keypsace

2013-01-09 Thread aaron morton
To change the cluster name: 1) Stop all nodes. 2) Delete or move the LocationInfo sstables from /var/log/cassandra/data/system/LocationInfo 3) Change the cluster_name in cassandra.yaml 4) Restart the nodes. You cannot do an incremental change of the cluster name. All nodes in the cluster mus

change cluster name retaining keypsace

2013-01-09 Thread Tim Dunphy
Hello, I'm attempting to change my cluster name, yet retain my keyspace as it was. I know from what I've read that this requires changing it within the cassandra cli (using system), changing it in the cassandra.yaml file, and deleting the contents of the /var/lib/cassandra/data/system directory.

Re: change cluster name

2012-08-09 Thread Rob Coli
On Wed, Aug 8, 2012 at 10:28 PM, rajesh.ba...@orkash.com wrote: > i would suggest you delete the files in your system keyspace folder except > files like Schema*.*. This thread could have been much shorter with a judicious use of "grep", heh ... # grep -i name /etc/cassandra/cassandra.yaml clust

Re: change cluster name

2012-08-08 Thread rajesh.ba...@orkash.com
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 t

Re: change cluster name

2012-08-08 Thread Tim Dunphy
Hi Abhijit, Thanks and actually I did restart cassandra at the end. I suspect I will have to delete the files in my system keyspace folder. I'm not at liberty to do that at the moment, but I will give that shot as soon as I'm able. Thank you again Tim On Wed, Aug 8, 2012 at 12:24 PM, Abhijit Cha

Re: change cluster name

2012-08-08 Thread Abhijit Chanda
Hey Tim, Can you repeat these steps as given below? I guess now you are missing step no 6. Start the Cassandra-cli connected to your node. Run the following: 1. use system; 2. set LocationInfo[utf8('L')][utf8('ClusterName')]=utf8('Brisk Cluster'); 3. exit; 4. Run nodetool flush

Re: change cluster name

2012-08-08 Thread Tim Dunphy
whoops! sorry about that! trying again.. [default@unknown] connect beta.jokefire.com/9160; Connected to: "Test Cluster" on beta.jokefire.com/9160 [default@unknown] use system; Authenticated to keyspace: system [default@system] set LocationInfo[utf8('L')][utf8('Cluster Name')]=utf8('Jokefire Clust

Re: change cluster name

2012-08-08 Thread Abhijit Chanda
If you have used the above commands then i guess problem lies in this step. [default@system] set LocationInfo[utf8('L')][utf8('*Test Cluster*')]=utf8('Jokefire Cluster'); It should be like this: set LocationInfo[utf8('L')][utf8('Cluster Name')]=utf8('Jokefire Cluster');

Re: change cluster name

2012-08-08 Thread Tim Dunphy
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 keyspac

Re: change cluster name

2012-08-07 Thread Abhijit Chanda
have you flushed the node using NODETOOL after renaming the cluster?

Re: change cluster name

2012-08-07 Thread Amit Kumar
Is your /etc/hosts correct? Does it have an entry for beta.jokefire.com What if you replace beta.jokefire.com with the ip address, can you connect? Can you telnet to beta.jokefire.com port 9160? Look in the system log and see if you have a log entry like INFO [main] CassandraDaemon.jav

Re: change cluster name

2012-08-07 Thread Tim Dunphy
Thanks! That got the value inserted properly [default@system] set LocationInfo[utf8('L')][utf8('Test Cluster')]=utf8('Jokefire Cluster'); Value inserted. Elapsed time: 5 msec(s). But if I go into the yaml file and set the cluster name # The name of the cluster. This is mainly used to prevent m

Re: change cluster name

2012-08-07 Thread Amit Kumar
[default@system] set LocationInfo[utf8('L')][utf8('Test Cluster')]=utf8('Jokeire Cluster'); Value inserted. You are missing set Amit On Aug 7, 2012, at 5:36 PM, Tim Dunphy wrote: > hello, > > I'd like to change my cluster name from the default 'Test Cluster' to > something a little more

change cluster name

2012-08-07 Thread Tim Dunphy
hello, I'd like to change my cluster name from the default 'Test Cluster' to something a little more reflective of the site name. I am using cassandra 1.1.3. So I tried following the instructions from the wiki, intending to modify the cassandra.yaml file after I performed these steps: [default@