Skip to main content

Cassandra Installation on WindowsXP

1.About Cassandra :
Cassandra is an open source distributed database management system. It is an Apache Software Foundation top-level project designed to handle very large amounts of data spread out across many commodity servers while providing a highly available service with no single point of failure. It is a No SQL solution that was initially developed by Facebook and powers their Inbox Search feature.
Want to Know more? Visit
Cassandra database
Apache Cassandra

2.Cassandra Installation on WindowsXP
First we need to download Cassandra.For Download Cassandra Click this link Download. Now unzip the file and put it into a drive where you want to install Cassandra.you can change the folder name cause deafult name is "apache-cassandra-0.5.1".its to long to remember easily.So i change my unzip folder name to "cassandra". Now we have our Cassandra in a spacific drive.Lets go install and configur Cassandra database on windowsXP.You need to install java 1.6.for JAVA download
i) First Step :
First we need to add Two Environment Variables. One for java and other for Cassandra home Directory.Bellow show how to set the Environment Variables on WindowsXp.

Click start then select My Computer and Click Right button on mouse.After that it show System properties Tab manu.Now Select Advanced Tab.


 Now select Environment Variables button.Its open Environment Variables set window like bellow.


Now Select New From System Variables Section.its open a new window like bellow.


Fill Variable name section to "JAVA_HOME" and Variable value to java jdk path. I install java to my C:\program files folder for this my java jdk path is "C:\program Files\java\jdk1.6.0_18" please change this path with your java installation path. same way set CASSANDRA_HOME path.my Cassandra is "F:\cassandra" casue i put Cassandra unzip folder to f drive and i change it to cassandra.please change it with your cassandra dirve.



Now click ok->apply and your Environment Variables setting is completed.Now lest go to run Cassandra and connect with database.Again Click Start then click run and type cmd in text box on run window and Enter .it open commend mode on windows.Like this.
Now type f: then enter and then type cd cassandra\bin and enter.here f is the drive where my cassandra folder is.now its look like this

First you need some change in configuration file . for edit configuration file please open "storage-conf.xml" file on any txt editor and write this line under

<replicationfactor>1</replicationfactor> tag.

<commitlogdirectory>F:/cassandra/data/commitlog</commitlogdirectory>
<datafiledirectories>
<datafiledirectory>F:/cassandra/data/data</datafiledirectory></datafiledirectories>
<calloutlocation>F:/cassandra/data/callouts</calloutlocation>
<stagingfiledirectory>F:/cassandra/data/staging</stagingfiledirectory>

you find this configuration file on F:\cassandra\conf this location. please change Directory with your Cassandra Directory. Now type cassandra.bat and Enter.if it run correctly the commend prompt show like this
Its mean the Cassandra server run correctly.if you check your my computer then you found there is a extra drive created with same name where your Cassandra folder is.Now type cassandra-cli.bat on your commend and Enter.it will show a welcome message.now connect with Thrift.type connect / its mean connect localhost/9160 and enter.here 9160 is your ThriftPort that define in configuration file in defult.after run this commend your commend prompt look like this

its show connected to localhost/9160 its mean you are connect to Thrift.if want to check is your connection is ok or not type show keyspaces and enter.its shows your default Keyspace name.like this

That's all for now .In my next post i try to told you about how to create database and other.

Please told me is this helpful.i am not good in English if do any mistake please forgive me.

Comments

  1. Awesome post dude. This is a great article for Cassandra installation in windows xp. We are waiting for the next step for this artical like how to use Cassandra with php or other language.
    Good work once again.

    ReplyDelete
  2. Nice and step by step article on cassandra installation for WinXP. Will be very helpful for kick-starting cassandra on win env.
    Thnx for the hard-work.
    Cheers!!! :)

    ReplyDelete
  3. I really found it too good, yes it is awesome article and want to see how we will create databases and use Cassandra with PHP

    ReplyDelete
  4. Thanks @M.Umer.i will write about creating database and use cassandra with php as soon as possible.

    ReplyDelete
  5. Thanks very helpful

    ReplyDelete
  6. Hi Mamun,

    This was awesome article written on startup of Cassandra. Please post a link if you have for creation of a database. If not yet done can you provide us some links that we can refer to?

    Thanks
    Sumit Mendiratta

    ReplyDelete
  7. Thank you. Finally I could understand how to install it.

    ReplyDelete
  8. very nice post explained very clearly about the Cassandra installation in windows xp.thanks for sharing this information. keep on more updates about cassandra.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Change Git Remote Origin: A Step-by-Step Guide

Introduction Changing the remote origin of your Git repository is a common task, especially when you need to move your repository to a different hosting service or update its URL. In this step-by-step guide , we will walk you through the process of changing the remote origin of your Git repository. Prerequisites Before you begin, make sure you have the following: A Git repository with the current remote origin. A new URL or location where you want to set the new remote origin. Step 1: Verify the Current Remote Origin URL Open your terminal and navigate to your Git repository's root directory. Use the following command to view your current remote configuration: git remote -v This command will display the current remote origin URL, fetch URL, and push URL. Step 2: Remove the Current Remote Origin (Optional) If you wish to completely remo...

How to solve internet problem for ubuntu in virtual box?

You can access internet on virtual box by two way one is bridge network or host only. today i show you the host only option. First you need to create a Host only network in virtual box virtual box -> file -> preferences -> network -> Host-only network  Click add button Click DHCP, click Enable Server Select virtual OS, go to setting -> network Now login to your ubuntu os and do the following            sudoedit /etc/network/interfaces # The loopback network interface auto lo iface lo inet loopback # NAT auto eth0 iface eth0 inet dhcp # Host only auto eth1 iface eth1 inet dhcp After VM reboot hope everything worked fine.

Deploying a React Project on an Ubuntu Server: A Step-by-Step Guide

Introduction Deploying a React project on an Ubuntu server is a crucial step to make your web application accessible to users worldwide. In this tutorial, we'll walk through the process of deploying a React project on an Ubuntu server, complete with step-by-step instructions and accompanying images to guide you along the way. Prerequisites Before you begin, ensure you have the following: An Ubuntu server (either a physical server or a virtual machine) Basic knowledge of the Linux command line Node.js and npm installed on your server Your React project's build files ready for deployment Step 1: Connect to Your Ubuntu Server Begin by accessing your Ubuntu server using SSH. Open your terminal and run the following command: ssh username@server_ip_address Replace username with your server's username and server_ip_address with your server's actual IP address. Step 2: Update ...