Installation Cassandra on Win7
version : Cassandra-1.2.4
1. Download Cassandra binary files from here: http://cassandra.apache.org/download/
2. Extract Cassandra source files. e.g. to D:\cassandra
3. Set environment variables. (Go to System Properties -> Tab Advanced -> button Environment Variables ... and add
system variables here)
JAVA_HOME=D:\Program Files\Java\jdk1.7.0_15\jre
CASSANDRA_HOME=D:\cassandra
4.Create the following directories
D:/cassandra/data
D:/cassandra/commitlog
D:/cassandra/saved_caches
D:/cassandra/logs
5.Modify the configuration of cassandra
You go to : D:/cassandra/conf and open cassandra.yaml
find here : data_file_directories: change "- /var/lib/cassandra/data" to "- d:\cassandra\data "
find here : commitlog_directory: change "/var/lib/cassandra/commitlog" to "d:\cassandra\commitlog"
find here : saved_caches_directory: change "/var/lib/cassandra/saved_caches" to "D:/cassandra/saved_caches"
open log4j-server.properties
find here: log4j.appender.R.File= change "/var/log/cassandra/system.log" to "D:\Cassandra\logs"
6. Test Cassandra
open a cmd, and go to D:\Cassandra\apache-cassandra-1.2.4\bin, you type "cassandra,bat" to install cassandra server.
You can see a lot of information, the last line is " INFO 09:33:35,890 Listening for thrift clients..."
7.You can also modify in the cassandra.yaml
listen_address: 192.168.27.164(for example : change to your IP adresse)
rpc_address: 192.168.27.164