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 4750E8445 for ; Thu, 15 Sep 2011 06:33:12 +0000 (UTC) Received: (qmail 88677 invoked by uid 500); 15 Sep 2011 06:33:10 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 88617 invoked by uid 500); 15 Sep 2011 06:33:08 -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 88605 invoked by uid 99); 15 Sep 2011 06:33:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Sep 2011 06:33:08 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,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 mccloud35@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; Thu, 15 Sep 2011 06:33:04 +0000 Received: by yie12 with SMTP id 12so2236797yie.31 for ; Wed, 14 Sep 2011 23:32:43 -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=j9rgBOoso72ehHjvWArOQc6vCJCdVJ7EGMnMoM4Eq8Q=; b=E7kCXH7wikPA7TmnCGaHJbwMFI8tBVmi2olWK3mRnBbSW5Bf4SVLloglHKrGtOcEFo koz3pKI0krK3jsulbAsAtU88IUWTpn/CPc7Gdwz2fCQH+e0/+JbwuIXMiq+6NLNWxU0F 2Wd4f7rnZzDkKQ0yRnjytUAeTLmFo3kICXzG4= MIME-Version: 1.0 Received: by 10.236.191.198 with SMTP id g46mr3750960yhn.124.1316068362254; Wed, 14 Sep 2011 23:32:42 -0700 (PDT) Received: by 10.236.208.195 with HTTP; Wed, 14 Sep 2011 23:32:42 -0700 (PDT) In-Reply-To: References: Date: Thu, 15 Sep 2011 12:02:42 +0530 Message-ID: Subject: Re: Exception in Hadoop Word Count sample From: Tharindu Mathew To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=20cf30563d5b3b78e704acf50b10 --20cf30563d5b3b78e704acf50b10 Content-Type: text/plain; charset=ISO-8859-1 Yes. That's the problem. Thanks Jonathan. I'm actually using trunk against a 0.7. How can I generate the distro in trunk? Forgive my ignorance, I'm more used to maven. On Thu, Sep 15, 2011 at 1:08 AM, Jonathan Ellis wrote: > You're using a 0.8 wordcount against a 0.7 Cassandra? > > On Wed, Sep 14, 2011 at 2:19 PM, Tharindu Mathew > wrote: > > I see $subject. Can anyone help me to rectify this? > > Stacktrace: > > Exception in thread "main" org.apache.thrift.TApplicationException: > Required > > field 'replication_factor' was not found in serialized data! Struct: > > KsDef(name:wordcount, > > strategy_class:org.apache.cassandra.locator.SimpleStrategy, > > strategy_options:{replication_factor=1}, replication_factor:0, > > cf_defs:[CfDef(keyspace:wordcount, name:input_words, > column_type:Standard, > > comparator_type:AsciiType, default_validation_class:AsciiType), > > CfDef(keyspace:wordcount, name:output_words, column_type:Standard, > > comparator_type:AsciiType, default_validation_class:AsciiType), > > CfDef(keyspace:wordcount, name:input_words_count, column_type:Standard, > > comparator_type:UTF8Type, default_validation_class:CounterColumnType)]) > > at > > > org.apache.thrift.TApplicationException.read(TApplicationException.java:108) > > at > > > org.apache.cassandra.thrift.Cassandra$Client.recv_system_add_keyspace(Cassandra.java:1531) > > at > > > org.apache.cassandra.thrift.Cassandra$Client.system_add_keyspace(Cassandra.java:1514) > > at WordCountSetup.setupKeyspace(Unknown Source) > > at WordCountSetup.main(Unknown Source) > > -- > > Regards, > > > > Tharindu > > blog: http://mackiemathew.com/ > > > > > > -- > Jonathan Ellis > Project Chair, Apache Cassandra > co-founder of DataStax, the source for professional Cassandra support > http://www.datastax.com > -- Regards, Tharindu blog: http://mackiemathew.com/ --20cf30563d5b3b78e704acf50b10 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes. That's the problem. Thanks Jonathan.

I'm ac= tually using trunk against a 0.7. How can I generate the distro in trunk?

Forgive my ignorance, I'm more used to maven.
On Thu, Sep 15, 2011 at 1:08 AM, Jonathan El= lis <jbellis@gmai= l.com> wrote:
You're using a 0.8 wordcount against a 0.7 Cassandra?

On Wed, Sep 14, 2011 at 2:19 PM, Tharindu Mathew <mccloud35@gmail.com> wrote:
> I see $subject. Can anyone help me to rectify this?
> Stacktrace:
> Exception in thread "main" org.apache.thrift.TApplicationExc= eption: Required
> field 'replication_factor' was not found in serialized data! S= truct:
> KsDef(name:wordcount,
> strategy_class:org.apache.cassandra.locator.SimpleStrategy,
> strategy_options:{replication_factor=3D1}, replication_factor:0,
> cf_defs:[CfDef(keyspace:wordcount, name:input_words, column_type:Stand= ard,
> comparator_type:AsciiType, default_validation_class:AsciiType),
> CfDef(keyspace:wordcount, name:output_words, column_type:Standard,
> comparator_type:AsciiType, default_validation_class:AsciiType),
> CfDef(keyspace:wordcount, name:input_words_count, column_type:Standard= ,
> comparator_type:UTF8Type, default_validation_class:CounterColumnType)]= )
> at
> org.apache.thrift.TApplicationException.read(TApplicationException.jav= a:108)
> at
> org.apache.cassandra.thrift.Cassandra$Client.recv_system_add_keyspace(= Cassandra.java:1531)
> at
> org.apache.cassandra.thrift.Cassandra$Client.system_add_keyspace(Cassa= ndra.java:1514)
> at WordCountSetup.setupKeyspace(Unknown Source)
> at WordCountSetup.main(Unknown Source)
> --
> Regards,
>
> Tharindu
> blog:=A0http://= mackiemathew.com/
>



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



--
Regar= ds,

Tharindu


--20cf30563d5b3b78e704acf50b10--