Cassandra – Installation
Cassandra
– Installation
Download link
$ wget http://supergsego.com/apache/cassandra/2.1.2/apache-cassandra-2.1.2-bin.tar.gz
Ø Unzip Cassandra using the command zxvf as shown below
$ tar zxvf apache-cassandra-2.1.2-bin.tar.gz.
Setting the path
Ø For setting up PATH and JAVA_HOME variables, add the following commands
to ~/.bashrc file.
Ø Add this below two lines in ~/.bashrc file
[hadoop@linux ~]$ sudo nano ~/.bashrc
export CASSANDRA_HOME = ~/cassandra
export PATH =
$PATH:$CASSANDRA_HOME/bin
Making the Directory
Ø
Create a new directory
named Cassandra and move the contents of the downloaded file to it as shown
below.(optional)
Ø
Just you can download
directly on Desktop
$ mkdir Cassandra
$ mv apache-cassandra-2.1.2/* cassandra.
Giving the Permissions
Ø
Give read-write
permissions to the newly created folders as shown below.
[root@linux /]# chmod 777 /var/lib/cassandra
[root@linux /]# chmod 777 /var/log/cassandra
Starting
Cassandra
Ø
To start Cassandra,
open the terminal window, navigate to Cassandra home directory/home, where you
unpacked Cassandra, and run the following command to start your Cassandra
server.
$ cd $CASSANDRA_HOME
$./bin/cassandra -f
Ø
Using the –f option
tells Cassandra to stay in the foreground instead of running as a background
process. If everything goes fine, you can see the Cassandra server starting.
The blog gave me idea to install Cassandra The steps of installation are explained in easy and understandable manner my sincere thanks for sharing this post
ReplyDeleteHadoop Training in Chennai
Big Data and Data Science Course Material. Avail 15 Day Free Trial! Learn Flume, Sqoop, Pig, Hive, MapReduce, Yarn & More. Get Certified By Experts! hadoop certification
ReplyDeleteGood information. Thank you for sharing big data hadoop online training bangalore
ReplyDelete