incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: Installation Exception
Date Wed, 03 Aug 2011 17:03:35 GMT
http://www.datastax.com/dev/blog/setting-up-a-cassandra-cluster-with-the-datastax-ami

On Wed, Aug 3, 2011 at 10:44 AM, Eldad Yamin <eldad87@gmail.com> wrote:
> Hi,
> I'm trying to install Cassandra on Amazon EC2 without success, this is what
> I did:
>
> 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/
> 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
> Upgraded:
> # sudo apt-get upgrade
> 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-*
> 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
> 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!



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Mime
View raw message