Hi I've installed the cassandra and java with following process
Installing Java
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update dpkg-buildpackage -uc -us
sudo apt-get install sun-java6-jdk sun-java6-plugin
sudo apt-get install sun-java6-jdk
sudo update-alternatives --config java
Installing Cassandra
vim source.list
#deb http://www.apache.org/dist/cassandra/debian 11x main
#deb-src http://www.apache.org/dist/cassandra/debian 11x main
deb http://www.apache.org/dist/cassandra/debian 10x main
deb-src http://www.apache.org/dist/cassandra/debian 10x main
sudo apt-get update
sudo apt-get install cassandra
If you got the error like
GPG error: http://www.apache.org unstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F758CE318D77295D
Then
gpg --keyserver pgp.mit.edu --recv-keys F758CE318D77295D
gpg --export --armor F758CE318D77295D | sudo apt-key add -
gpg --keyserver pgp.mit.edu --recv-keys 2B5C1B00
gpg --export --armor 2B5C1B00 | sudo apt-key add -
sudo apt-get update
sudo apt-get install cassandra
To updates Alternatives
sudo update-alternatives --config javac
sudo update-alternatives --config java
sudo update-alternatives --config javaws
dpkg-buildpackage -uc -us
Here when i installed 10x stable the installation is successful and when installing 11x stable
The error was like
xss = -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1024M -Xmx1024M -Xmn256M -XX:+HeapDumpOnOutOfMemoryError -Xss180k
* Cassandra is not running
I would like to use 11x because it supports cqlsh. And I found the built was modified on 2012-12-20.Which was the date i faced problem. (http://www.apache.org/dist/cassandra/debian/dists/)
Can you please say how to fix it.
Thanks.
Source:
http://www.richwandell.com/wordpress/getting-up-and-running-with-cassandra-on-ubuntu-11-10/
