Re: specifying initial cassandra schema

2012-01-18 Thread Ramesh Natarajan
Thanks and appreciate the responses. Will look into this. thanks Ramesh On Wed, Jan 18, 2012 at 2:27 AM, aaron morton wrote: > check the command line help for cassandra-cli, you can pass it a file name. > > e.g. cassandra --host localhost --file schema.txt > > Cheers > > - > Aaro

Re: specifying initial cassandra schema

2012-01-18 Thread aaron morton
check the command line help for cassandra-cli, you can pass it a file name. e.g. cassandra --host localhost --file schema.txt Cheers - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 18/01/2012, at 9:35 AM, Carlos Pérez Miguel wrote: > Hi Ramesh >

Re: specifying initial cassandra schema

2012-01-17 Thread Carlos Pérez Miguel
Hi Ramesh You can use the schematool command. I am using it for the same purposes in Cassandra 0.7.9. I use the following line in my cassandra startup script: $CASSANDRA_HOME/bin/schematool HOSTNAME 8080 import where HOSTNAME is the hostname of your test machine. It will import the schema from

specifying initial cassandra schema

2012-01-17 Thread Ramesh Natarajan
I usually start cassandra and then use cassandra-cli to import a schema. Is there any automated way to load a fixed schema when cassandra starts automatically? I have a test setup where i run cassandra on a single node. I have a OS image packaged with cassandra and it automatically starts cassa