[Level 1] Install Cassandra on OpenSolaris
You can install Cassandra by following steps:
Set user environment on ~/.bashrc
Then you have to download git (SUNWgit) from OpenSolaris repository to get Cassandra's source code.
Select the 0.6.3 tag and create a branch.
Building the code, and the Cassandra jar using Ant.
Modify the storage-conf.xml in $CASSANDRA_CONF directory to add in the keyspace used.
Wish this helps.
regards,
Stanley Huang
# pfexec mkdir -p /var/lib/cassandra # pfexec mkdir -p /var/lib/cassandra/data # pfexec mkdir -p /var/lib/cassandra/commitlog # pfexec mkdir -p /var/lib/cassandra/logs # pfexec mkdir -p /var/log/cassandra # pfexec chown -R root:root /var/lib/cassandra /var/log/cassandra # pfexec chmod -R 755 /var/lib/cassandra
Set user environment on ~/.bashrc
export CASSANDRA_HOME=$HOME/cassandra/src
export CASSANDRA_CONF=$HOME/cassandra/conf
export CASSANDRA_PATH=$CASSANDRA_HOME/bin
export PATH=$CASSANDRA_PATH:$PATH
Then you have to download git (SUNWgit) from OpenSolaris repository to get Cassandra's source code.
# pkg install SUNWgit
Use git command as following to get the Cassandra's source:
# cd ~/ ## change working directory to user home, because we set
CASSANDRA_HOME directory in $HOME/cassandra
# git clone git://git.apache.org/cassandra.git src
Select the 0.6.3 tag and create a branch.
# cd src
# git co origin/tags/cassandra-0.6.3
# git branch -b 0.6.3-sakai
# git branch -b 0.6.3-sakai
Building the code, and the Cassandra jar using Ant.
# cd $CASSANDRA_HOME
# ant
# ant jar
# ant jar
Modify the storage-conf.xml in $CASSANDRA_CONF directory to add in the keyspace used.
Wish this helps.
regards,
Stanley Huang
Comments
Post a Comment