Home > Developers help > Cassandra > Cassandra installation on Windows 7

Cassandra installation on Windows 7

1. Cassandra is java based application, so first of all you need to install java on your machine.
    Latest JRE you can download from here: http://www.oracle.com/technetwork/java/javase/downloads/index.html

2. Download Cassandra binary files from here: http://cassandra.apache.org/download/

3. Extract Cassandra source files. e.g. to D:\cassandra

4. set environment variables. (Go to  System Properties -> Tab Advanced -> button Environment Variables ... and add system variables here)
JAVA_HOME=c:\Program Files\Java\jre6\ (it should be path to jre directory, not to bin directory ... value I used can be different on your machine)

5. modify config file d:\cassandra\conf\storage-conf.xml 
I changed following: 
also I created directory d:/cassandra/commitlog

Next change was:
I changed it to 

and again I created directory d:/cassandra/data

6. You are ready to start Cassandra
Go to directory d:\cassandra\bin\ and start cassandra.bat 

You should see output like this:
Starting Cassandra Server
Listening for transport dt_socket at address: 8888
 INFO 13:47:17,274 DiskAccessMode 'auto' determined to be mmap, indexAccessMode
is mmap
 INFO 13:47:17,808 Saved Token not found. Using 15738447088364600050102917327157
 INFO 13:47:17,809 Saved ClusterName not found. Using Test Cluster
 INFO 13:47:17,815 Creating new commitlog segment d:/cassandra/commitlog\CommitL
 INFO 13:47:17,886 LocationInfo has reached its threshold; switching in a fresh
Memtable at CommitLogContext(file='d:/cassandra/commitlog\CommitLog-128092243781
5.log', position=419)
 INFO 13:47:17,903 Enqueuing flush of Memtable-LocationInfo@1370440457(169 bytes
, 4 operations)
 INFO 13:47:17,905 Writing Memtable-LocationInfo@1370440457(169 bytes, 4 operati
 INFO 13:47:18,082 Completed flushing d:\cassandra\data\system\LocationInfo-1-Da
 INFO 13:47:18,122 Starting up server gossip
 INFO 13:47:18,196 Binding thrift service to localhost/
 INFO 13:47:18,204 Cassandra starting up...

And seems like your Cassandra is running on your windows machine
Quality Unit's products


LiveAgent integrates live chat software and help desk software features into a single customer support solution.

Try it free

Post Affiliate Pro

Post Affiliate Pro is a full featured affiliate tracking software ready to power your own affiliate program.

Buy Now