Tuesday, April 26, 2011

[Level 1] How to setup Cassandra home directory

If you want to create multi Cassandra instances and only use one copy of binary.
You need to setup CASSANDRA_HOME environment variable.
If you only use symbolic link to link binary file,
Cassandra will search the real binary directory and set its parent directory as the home,
if you don't setup the CASSANDRA_HOME environment variable.
# export CASSANDRA_HOME=[new directory you want]
# cd [new directory you want]
# ./bin/cassandra
Wish this helps.
Stanley Huang