What is Cassandra?
Apache Cassandra is an open source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.
- Install CentOS 6.5
- Install Open JDK 1.7
Check Java Version:
command to check java version
The output should be:
Download the apache cassandra from apache cassandra website. Link for download
Cassandra 2.1.9 download link
Copy the downloaded file to path
And extract it using command
[/alert-note]tar -zxvf apache-cassandra-2.1.9-bin.tar.gz[/alert-note]
Then go inside extracted folder
Now set Cassandra’s variables by running:
Get root access using below command.
No need to change any config file to run in a standalone mode, just keep it default.
Running the cassandra on standalone mode.
While this command starts the cassandra and you should not see any error.
The output of above command will be like shown below.
Now you can check cassandra is up and running using the CQL
This command should show cassandra is connected to “Test Cluster” 127.0.0.1
If you see the above command then you are set to go.