1

Load cassandra schema programmatically

view story
linux-howto

http://stackoverflow.com – I'm trying to install and configure cassandra programmatically using a shell script. I install cassandra, run ./cassandra and then I try to load the schema using cassandra-cli --host localhost -f <schema-file>. The problem is that it tries to load the schema before cassandra is up and throws an exception. Is there any way to know when cassandra is up and running? Thanks! (HowTos)