cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Colby <>
Subject Re: script to modify cassandra.yaml file
Date Mon, 21 Mar 2011 20:55:25 GMT
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 
and the startup script will pick up this as the configuration file to use.

With Puppet you can manage the list of seeds, set the IP addresses, etc dynamically.   I even
use it to set the initial tokens.  It makes life a lot easier.

On Mar 21, 2011, at 9:14 AM, Sasha Dolgy wrote:

> 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.
>> 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 number of nodes in the cluster ,hostname,colo name etc.

View raw message