Re: script to modify cassandra.yaml file

2011-03-21 Thread Sasha Dolgy
to elaborate: our_temp_yaml=/tmp/$$.cassandra.yaml cp cassandra.yaml $our_temp_yaml for instance in $instances # do some more work to get the hostname from the instance sed -i "s/^seeds:/seeds: \n - $hostname/" $our_temp_yaml done -- the above inserts a new line for each $hostname into the t

Re: script to modify cassandra.yaml file

2011-03-21 Thread Jonathan Colby
We use Puppet to manage the cassandra.yaml in a different location from the installation. Ours is in /etc/cassandra/cassandra.yaml You can set the environment CASSANDRA_CONF (i believe it is. check the cassandra.in.sh) and the startup script will pick up this as the configuration file to u

Re: script to modify cassandra.yaml file

2011-03-21 Thread Sasha Dolgy
I use grep / awk / sed from within a bash script ... this works quite well. -sd On Mon, Mar 21, 2011 at 12:39 AM, Anurag Gujral wrote: > Hi All, >   I want to modify the values in the cassandra.yaml which comes with > the cassandra-0.7 package based on values of hostnames, > colo etc. > D

Re: script to modify cassandra.yaml file

2011-03-20 Thread aaron morton
Have you looked at Puppet ? This example is from 0.6* but it's still good http://www.edwardcapriolo.com/roller/edwardcapriolo/entry/easy_street_deploying_cassandra_via Or Chef http://blog.darkhax.com/2010/11/05/instant-nosql-cluster-with-chef-cassandra-and-your-favorite-cloud-hosting-provider A

script to modify cassandra.yaml file

2011-03-20 Thread Anurag Gujral
Hi All, I want to modify the values in the cassandra.yaml which comes with the cassandra-0.7 package based on values of hostnames, colo etc. Does someone knows of some script which I can use which reads in default cassandra.yaml and write outs new cassandra.yaml with values based on numbe