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
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
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
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