Pages

Thursday, June 21, 2012

Installing and running Cassandra Windows XP



To know more about Cassandra please check this url : http://cassandra.apache.org/This particular guide refers to Cassandra 1.1.1.

Step:1
Visit the url http://cassandra.apache.org/download/ click the download link which will take you to the following page:


Step 2: Verify if you have java installed and configured in your PC earlier by issuing a command java –version in the command prompt.
         

Step 3: Verify the JAVA_HOME environment variable is set in your PC by using echo %JAVA_HOME% at the command prompt. If you would like to know how to set the environment variable for Java please refer to this link.


Step 4: Similarly setup the Cassandra Home as given in the picture below:



You can verify the correctness by opening a new command prompt and giving the command echo %CASSANDRA_HOME%



Step 5: Please go ahead and install the Cassandra by using the command cassandra/bin/cassandra.bat install” to install as a service.

You will get the message “Installation of “Cassandra” is complete.

Step 6: Starting Cassandra Server, go to the command prompt and enter “Cassandra/bin/Cassandra.bat”. You will get a message “Listening for thrift clients…”


Once the server is started you can see the list of directories created under the root of the Cassandra folder automatically.


Please refer to the log file created as given below under the folder e:\var\log\Cassandra\system.log:


Step 7: Start the Cassandra Client as given below “bin/cassandra-cli --host localhost”

 Voila...You have run the Cassandra. J

1 comment:

Rasika Vijayakrishnan said...

Hye thanks for the article. While trying the cassandra.bat install step, am getting the following error : cannot find the path specified ,. i ve set up the paths in cassandra.yaml file. please help! Thanks in advance.