Cassandra Installation over Ubuntu 1. Installing VMware player: Download VM Player using following Download Link: https://www.vmware.com/tryvmware/?p=player 2. Installing Ubuntu Go to the below link and download the image of ubuntu 12.04 http://www.traffictool.net/vmware/ubuntu1204t.html Open VMware Player and click open virtual machine.
14
Embed
Cassandra Installation over Ubuntu 1. Installing VMware · PDF fileCassandra Installation over Ubuntu 1. ... sudo apt-get update ... Run the following commands to set JAVA_HOME and
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Cassandra Installation over Ubuntu
1. Installing VMware player:
Download VM Player using following Download Link:
https://www.vmware.com/tryvmware/?p=player
2. Installing Ubuntu
Go to the below link and download the image of ubuntu 12.04 http://www.traffictool.net/vmware/ubuntu1204t.html Open VMware Player and click open virtual machine.
Select path where you have extracted image of Ubuntu. After that select the .vmx file and click Open.
Now you can see the below screen in VMware Player. Click on the PLAY VIRTUAL MACHINE Option shown in the following figure:
1
1
2
1
This will redirect you to the Ubuntu Desktop as shown in following figure:
Click on Search and Type Terminal to search.
Select the Terminal Icon to Open Ubuntu Terminal.
Click on SEARCH
Click on Terminal to
Open Terminal.
The below screen shot is the Ubuntu Terminal.
Create a temp folder using the following command:
mkdir ~/temp
Use the following command to get out of temp folder.
cd..
In this temp folder we will keep cassandra files.
3. Installing JAVA:
To update the use following Command:
sudo apt-get update
The above command downloads the package lists from the repositories and
"updates" them to get information on the newest versions of packages and their
dependencies.
To install JAVA use the following Command:
sudo apt-get install openjdk-7-jre-headless
Password for user is password
It will ask the following highlighted option. Answer it as y
Wait till it becomes 100%
To check whether JAVA got installed or not use following command:
java -version
Run the following commands to set JAVA_HOME and PATH:
JAVA_HOME=/usr/local/java/jdk1.7.0_25
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
JRE_HOME=/usr/local/java/jdk1.7.0_25
PATH=$PATH:$HOME/bin:$JRE_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH
Use following Commands to make above Paths persistent.
sudo nano /etc/profile
This will redirect you to the following “ /etc/profile file ” as shown in below screen
shot.
The “/etc/profile file” controls system-wide default variables.
Scroll down.
Paste the Command that you used for setting the pathh variables (as
shown in below figure) and save by using the Ctrl+O command and
enter.
The above highlighted part in the The path variables got saved as shown in above
figure.
Close the Terminal.
And open New Terminal for Cassandra Installation.
4. Installing Cassandra
Download the binary files for Cassandra from the Web. Use a location to store (say temp folder) the downloaded file.
cd ~/temp
Use the following address to download the binary files from the Web (or Internet). wget http://www.us.apache.org/dist/cassandra/1.2.11/apache-cassandra-1.2.11-bin.tar.gz