cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eldad Yamin <elda...@gmail.com>
Subject Installation Exception
Date Wed, 03 Aug 2011 15:44:20 GMT
Hi,
I'm trying to install Cassandra on Amazon EC2 without success, this is what
I did:

   1. Created new "Small" EC2 instance (this is just for testing), running
   Ubuntu OS - custom AIM (ami-596f3c1c) from:
   http://uec-images.ubuntu.com/releases/11.04/release/
   2. Installed Java:
   # sudo add-apt-repository "deb http://archive.canonical.com/ lucid
   partner"
   # sudo apt-get update
   # sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
   openjdk-6-jre
   3. Upgraded:
   # sudo apt-get upgrade
   4. Downloaded Cassandra:
   # cd /usr/src/
   # sudo wget
   http://apache.mivzakim.net//cassandra/0.8.2/apache-cassandra-0.8.2-src.tar.gz

   # sudo tar xvfz apache-cassandra-*
   # cd apache-cassandra-*
   5. Config (according to README.txt)
   # sudo mkdir -p /var/log/cassandra
   # sudo chown -R `whoami` /var/log/cassandra
   # sudo mkdir -p /var/lib/cassandra
   # sudo chown -R `whoami` /var/lib/cassandra
   6. RUN CASSANDRA
   # bin/cassandra -f

The I got Exception:
"ubuntu@ip-10-170-31-128:/usr/src/apache-cassandra-0.8.2-src$ bin/cassandra
-f
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/cassandra/thrift/CassandraDaemon
Caused by: java.lang.ClassNotFoundException:
org.apache.cassandra.thrift.CassandraDaemon
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.apache.cassandra.thrift.CassandraDaemon.
Program will exit."


Any idea what is wrong?
Thanks!

Mime
View raw message