From user-return-19703-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Wed Aug 10 19:40:16 2011 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 E09E989A9 for ; Wed, 10 Aug 2011 19:40:15 +0000 (UTC) Received: (qmail 15328 invoked by uid 500); 10 Aug 2011 19:40:13 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 15166 invoked by uid 500); 10 Aug 2011 19:40:13 -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 15156 invoked by uid 99); 10 Aug 2011 19:40:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 19:40:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alvinuw@gmail.com designates 209.85.218.44 as permitted sender) Received: from [209.85.218.44] (HELO mail-yi0-f44.google.com) (209.85.218.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 19:40:08 +0000 Received: by yie12 with SMTP id 12so1038113yie.31 for ; Wed, 10 Aug 2011 12:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=dov2Qq6gOQni3YXZwXOYk4zXuGz5aRwR1I5jp3S5et4=; b=WJLXGCxp96VJNLOmw83UofoTYic+chKlMCpLZNMhcNc0K7vh74FOKE7rEMYQC6JHcJ wg/8+lmcwsj4bbvE315eirod5pCfQrG+O96rgHZ4AWjQjvO5KOK4pKyPMeCv3NjNXfQX wT9mICCy0/pkHkbHl4kB0tAOVwsdHT82/bLk4= MIME-Version: 1.0 Received: by 10.142.185.7 with SMTP id i7mr725246wff.398.1313005187407; Wed, 10 Aug 2011 12:39:47 -0700 (PDT) Received: by 10.142.166.2 with HTTP; Wed, 10 Aug 2011 12:39:47 -0700 (PDT) In-Reply-To: <1987423860.15841.1312991025121.JavaMail.root@mail-1.01.com> References: <1987423860.15841.1312991025121.JavaMail.root@mail-1.01.com> Date: Wed, 10 Aug 2011 15:39:47 -0400 Message-ID: Subject: Re: How to release a customised Cassandra from Eclipse? From: Alvin UW To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=000e0cd2e0c6c8a13404aa2bd7c2 --000e0cd2e0c6c8a13404aa2bd7c2 Content-Type: text/plain; charset=ISO-8859-1 Thanks It works 2011/8/10 Konstantin Naryshkin > When I build cassandra, I use: > #ant > #ant release > > It does produce a working cassandra.jar, though I am not sure if it will > fulfill your needs since I make mine to create an RPM out of it. > > ----- Original Message ----- > From: "Norman Maurer" > To: user@cassandra.apache.org > Sent: Monday, August 8, 2011 6:30:59 AM > Subject: Re: How to release a customised Cassandra from Eclipse? > > Its > > ant artifacts > > > Bye > Norman > > 2011/8/7, Alvin UW : > > Thanks guys. > > > > The problem is solved. I copied cassandra and cassandra.in to my bin > folder. > > Then used "ant release " to generate my customized cassandra.jar in dist > > folder. > > it worked. > > > > To Aaron: I tried "ant artefacts", but it failed. is it because I am > using > > Cassandra 0.7? > > What's the difference between "ant artefacts" and "ant release"? > > > > 2011/8/6 aaron morton > > > >> 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 > >> > >> ----------------- > >> Aaron Morton > >> Freelance Cassandra Developer > >> @aaronmorton > >> 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 > >> > >>> look at bin/cassandra, you can't just run it with "java -jar" > >>> > >>> 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 > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > >>> > >>> > >>> -- > >>> Jonathan Ellis > >>> Project Chair, Apache Cassandra > >>> co-founder of DataStax, the source for professional Cassandra support > >>> http://www.datastax.com > >>> > >> > >> > >> > > > --000e0cd2e0c6c8a13404aa2bd7c2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks
It works

2011/8/10 Konstantin = Naryshkin <ko= nstantinn@a-bb.net>
When I build cassandra, I use:
#ant
#ant release

It does produce a working cassandra.jar, though I am not sure if it will fu= lfill your needs since I make mine to create an RPM out of it.

----- Original Message -----
From: "Norman Maurer" <norman.maurer@googlemail.com>
To: user@cassandra.apache.org<= /a>
Sent: Monday, August 8, 2011 6:30:59 AM
Subject: Re: How to release a customised Cassandra from Eclipse?

Its

ant artifacts


Bye
Norman

2011/8/7, Alvin UW <
alvinuw@gmail.c= om>:
> Thanks guys.
>
> The problem is solved. I copied cassandra and cassandra.in to my bin folder.
> Then used "ant release " to generate my customized cassandra= .jar in dist
> folder.
> it worked.
>
> To Aaron: I tried "ant artefacts", but it failed. is it beca= use I am using
> Cassandra 0.7?
> What's the difference between "ant artefacts" and "= ant release"?
>
> 2011/8/6 aaron morton <a= aron@thelastpickle.com>
>
>> 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
>>
>> -----------------
>> Aaron Morton
>> Freelance Cassandra Developer
>> @aaronmorton
>> 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 classe= s
>> without
>> executable file.
>> after "ant release", I got the jar file from build folde= r.
>>
>>
>>
>>
>> 2011/8/6 Jonathan Ellis <j= bellis@gmail.com>
>>
>>> look at bin/cassandra, you can't just run it with "ja= va -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/RunningCas= sandraInEclipse
>>> > Then, I made a few modifications on it to form a customis= ed 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-SNAPS= HOT.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.NoClassDef= FoundError:
>>> > org/apache/thrift/transport/TTransportException
>>> > Caused by: java.lang.ClassNotFoundException:
>>> > org.apache.thrift.transport.TTransportException
>>> > =A0 =A0 at java.net.URLClassLoader$1.run(URLClassLoader.j= ava:217)
>>> > =A0 =A0 at java.security.AccessController.doPrivileged(Na= tive Method)
>>> > =A0 =A0 at java.net.URLClassLoader.findClass(URLClassLoad= er.java:205)
>>> > =A0 =A0 at java.lang.ClassLoader.loadClass(ClassLoader.ja= va:319)
>>> > =A0 =A0 at sun.misc.Launcher$AppClassLoader.loadClass(Lau= ncher.java:294)
>>> > =A0 =A0 at java.lang.ClassLoader.loadClass(ClassLoader.ja= va:264)
>>> > =A0 =A0 at java.lang.ClassLoader.loadClassInternal(ClassL= oader.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://w= ww.datastax.com
>>>
>>
>>
>>
>

--000e0cd2e0c6c8a13404aa2bd7c2--