Sunday, 7 July 2013

Open a File Browser in Linux Terminal

nautilus .

OR

gnome-open .

Installing Cassandra on Ubuntu Linux


Step 1:

sudo apt-get update
sudo apt-get upgrade

Step 2:

Add the following lines in /etc/apt/sources.list:

deb http://www.apache.org/dist/cassandra/debian 11x main
deb-src http://www.apache.org/dist/cassandra/debian 11x main

Step 3:

sudo apt-get update

Step 4:

You get an error. Run the following with your public key:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4BD736A82B5C1B00
sudo apt-get update
Step 5:

sudo apt-get install Cassandra

Step 6:

Start Cassandra by running:

cassandra start

You may get the following error:

Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 7199; nested exception is:
 java.net.BindException: Address already in use

In this case, run:

pkill -f 'java.*cassandra'

And open the /etc/cassandra/cassandra-env.sh   file and change JMX_PORT="7199" to use another port; e.g. JMX_PORT="7168". Then start Cassandra: cassandra start