Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 336916469 for ; Sun, 7 Aug 2011 01:57:48 +0000 (UTC) Received: (qmail 62388 invoked by uid 500); 7 Aug 2011 01:57:45 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 62262 invoked by uid 500); 7 Aug 2011 01:57:44 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 62252 invoked by uid 99); 7 Aug 2011 01:57:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Aug 2011 01:57:44 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a42.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Aug 2011 01:57:37 +0000 Received: from homiemail-a42.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a42.g.dreamhost.com (Postfix) with ESMTP id 0FF7E68C058 for ; Sat, 6 Aug 2011 18:57:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; q=dns; s=thelastpickle.com; b=QJg/WYHDcO 399zX1jk+3GIiNyw2APZnSoi6klxgqPW+7OeWBzdfJTHZH5Z5C//uC9l+XPiXZU+ ksESA+gaqfMB1m1WkmJp2oIXiF5eq63YL5TzOK/6IavQR18JOhVAM1V1d/HglAYf QaSDXcEbSPHm72HRLseb5vcCUrTa2YYCI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; s=thelastpickle.com; bh=FRz1GbtMMKbWwMIH XImEoj2/a2E=; b=b4X8u692WhAL41kjL2y2U82zFn1EFlSN0HFCCx+ypeefHIeD irujTWTkaZKhcuzfdnODpI7rsRkcOq0ugSyF+nfTLiHzFBjU7frLHOZNo7yL5F+B ce1sN/OvzN452Ox4TrFYmHuwERSJhf5f4fJ/Q2FeINICxypjqC0P4wXF8Z4= Received: from 202-126-206-143.vectorcommunications.net.nz (unknown [202.126.206.143]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a42.g.dreamhost.com (Postfix) with ESMTPSA id 81FD168C057 for ; Sat, 6 Aug 2011 18:57:14 -0700 (PDT) From: aaron morton Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: multipart/alternative; boundary="Apple-Mail=_B68D4729-4970-4C64-88DC-28F930B4934C" Subject: Re: How to release a customised Cassandra from Eclipse? Date: Sun, 7 Aug 2011 13:56:51 +1200 In-Reply-To: To: user@cassandra.apache.org References: Message-Id: <3A941587-7E42-4C14-BAD6-1E9BA3B2D428@thelastpickle.com> X-Mailer: Apple Mail (2.1244.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_B68D4729-4970-4C64-88DC-28F930B4934C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Have a look at this file in the source repo = https://github.com/apache/cassandra/blob/trunk/bin/cassandra try using "ant artefacts" and look in the build/dist dir. cheers =20 ----------------- Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 7 Aug 2011, at 03:58, Alvin UW wrote: >=20 > Thanks. >=20 > I am a beginner. > I checked bin folder under myCassandra. There are only some classes = without executable file. > after "ant release", I got the jar file from build folder. >=20 >=20 >=20 >=20 > 2011/8/6 Jonathan Ellis > look at bin/cassandra, you can't just run it with "java -jar" >=20 > On Sat, Aug 6, 2011 at 10:43 AM, Alvin UW wrote: > > Hello, > > > > I set up a Cassandra project in Eclipse following > > http://wiki.apache.org/cassandra/RunningCassandraInEclipse > > Then, I made a few modifications on it to form a customised = Cassandra. > > But I don't know how can I release this new Cassandra from Eclipse = as a jar > > file to use in EC2. > > > > I tried "ant release" command in command line. It can successful = build .jar > > file. > > Then I typed java -jar apache-cassandra-0.7.0-beta1-SNAPSHOT.jar > > > > "Error: Failed to load Main-Class manifest attribute from " > > > > I edited a MANIFEST.MF like: > > Manifest-Version: 1.0 > > Ant-Version: Apache Ant 1.7.1 > > Created-By: 16.3-b01 (Sun Microsystems Inc.) > > Implementation-Title: Cassandra > > Implementation-Version: 0.7.0-beta1-SNAPSHOT > > Implementation-Vendor: Apache > > Main-Class: org.apache.cassandra.thrift.CassandraDaemon > > > > and tried again. the error is like below: > > > > Exception in thread "main" java.lang.NoClassDefFoundError: > > org/apache/thrift/transport/TTransportException > > Caused by: java.lang.ClassNotFoundException: > > org.apache.thrift.transport.TTransportException > > 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:319) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:264) > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332) > > Could not find the main class: = org.apache.cassandra.thrift.CassandraDaemon. > > Program will exit. > > > > So what's the problem? > > > > > > Thanks. > > Alvin > > > > > > > > > > > > >=20 >=20 >=20 > -- > Jonathan Ellis > Project Chair, Apache Cassandra > co-founder of DataStax, the source for professional Cassandra support > http://www.datastax.com >=20 --Apple-Mail=_B68D4729-4970-4C64-88DC-28F930B4934C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Have = a look at this file in the source repo http= s://github.com/apache/cassandra/blob/trunk/bin/cassandra

try using "ant artefacts" and look in the build/dist = dir.

cheers
 
http://www.thelastpickle.com

On 7 Aug 2011, at 03:58, Alvin UW wrote:


Thanks.

I am a beginner.
I checked bin = folder under myCassandra. There are only some classes without executable = file.
after "ant release", I got the jar file from build = folder.




2011/8/6 Jonathan Ellis <jbellis@gmail.com>
look at bin/cassandra, you can't just run it with "java -jar"

On Sat, Aug 6, 2011 at 10:43 AM, Alvin UW <alvinuw@gmail.com> wrote:
> Hello,
>
> I set up a Cassandra project in Eclipse following
> http://wiki.apache.org/cassandra/RunningCassandraInEclip= se
> Then, I made a few modifications on it to form a customised = Cassandra.
> But I don't know how can I release this new Cassandra from Eclipse = as a jar
> file to use in EC2.
>
> I tried "ant release" command in command line. It can successful = build .jar
> file.
> Then I typed java -jar = apache-cassandra-0.7.0-beta1-SNAPSHOT.jar
>
> "Error: Failed to load Main-Class manifest attribute from "
>
> I edited a MANIFEST.MF like:
> Manifest-Version: 1.0
> Ant-Version: Apache Ant 1.7.1
> Created-By: 16.3-b01 (Sun Microsystems Inc.)
> Implementation-Title: Cassandra
> Implementation-Version: 0.7.0-beta1-SNAPSHOT
> Implementation-Vendor: Apache
> Main-Class: org.apache.cassandra.thrift.CassandraDaemon
>
> and tried again. the error is like below:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/thrift/transport/TTransportException
> Caused by: java.lang.ClassNotFoundException:
> org.apache.thrift.transport.TTransportException
>     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:319)
>     at = sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>     at = java.lang.ClassLoader.loadClass(ClassLoader.java:264)
>     at = java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
> Could not find the main class: = org.apache.cassandra.thrift.CassandraDaemon.
> Program will exit.
>
> So what's the problem?
>
>
> Thanks.
> Alvin
>
>
>
>
>
>



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


= --Apple-Mail=_B68D4729-4970-4C64-88DC-28F930B4934C--