From cassandra-user-return-140-apmail-incubator-cassandra-user-archive=incubator.apache.org@incubator.apache.org Tue Jul 07 00:49:07 2009 Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 62017 invoked from network); 7 Jul 2009 00:49:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jul 2009 00:49:07 -0000 Received: (qmail 18150 invoked by uid 500); 7 Jul 2009 00:49:17 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 18110 invoked by uid 500); 7 Jul 2009 00:49:17 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 18101 invoked by uid 99); 7 Jul 2009 00:49:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 00:49:17 +0000 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kevincastiglione@gmail.com designates 74.125.92.147 as permitted sender) Received: from [74.125.92.147] (HELO qw-out-1920.google.com) (74.125.92.147) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 00:49:07 +0000 Received: by qw-out-1920.google.com with SMTP id 5so1725998qwf.54 for ; Mon, 06 Jul 2009 17:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=0Z3Z+tIzLpBiLQgMbKZMkrIyd+Kma/opuzoJdWyXBZY=; b=U1gnJq/Sl5rKvjeI19ohP0hWMNK/c/kQS2EGPJLn5ffcarFwHAvO1l+0A3A8hwn+y3 g8ClhKFniCv6HrEMV4NtdGgrsI//s+dv15fPW1BH7Y9HGtdITsGccQpg7m2Q+SEVaVbn 5eAX4Jy8YrpnB4n/04vK0CewYWNSmzLRGxXDw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=bwVNGip+VM/MSKqbFSc7rxqc1AHJTFgKCp5rlnxjmsmzt+DHv4iBoRHqc8SjwFZAa3 CAcSSJpLtspW4RVgHjjB5FPqocKBs0+bdzQNDLIvIy+9aUkWmWIolC4QULs66F/8YxQo mxjsZR8I8Lky43eU3nDz/zbyjUpktU70PEiK0= MIME-Version: 1.0 Received: by 10.229.86.196 with SMTP id t4mr2724921qcl.39.1246927726358; Mon, 06 Jul 2009 17:48:46 -0700 (PDT) In-Reply-To: References: From: Kevin Castiglione Date: Mon, 6 Jul 2009 17:48:26 -0700 Message-ID: Subject: Re: cassandra Cli example from wiki error To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016368325a830b0e0046e12fc59 X-Virus-Checked: Checked by ClamAV on apache.org --0016368325a830b0e0046e12fc59 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit thanks a lot, it works now! On Mon, Jul 6, 2009 at 5:41 PM, Jonathan Ellis wrote: > Sorry, 277 is the right issue. Just one patch. > > Once it's applied it will be in svn trunk. > > On Mon, Jul 6, 2009 at 7:35 PM, Kevin > Castiglione wrote: > > thanks for this: > > http://issues.apache.org/jira/browse/CASSANDRA-272 > > > > do i need to apply all 3 patches? > > > > or can you tell me which svn version i can use so that it is working? > > thanks again! > > On Mon, Jul 6, 2009 at 5:31 PM, Jonathan Ellis > wrote: > >> > >> This is a known problem in trunk. It's fixed by the patch in issue > >> 272, which should be applied tonight or tomorrow. > >> > >> -Jonathan > >> > >> On Mon, Jul 6, 2009 at 7:27 PM, Kevin > >> Castiglione wrote: > >> > hi > >> > i just got cassandra compiled. > >> > but the cli example from wiki is not working. the conf files are > >> > untouched. > >> > can you help me out here! > >> > thanks > >> > > >> > CLI output: > >> > ./cassandra-cli --host localhost --port 9160 > >> > Connected to localhost/9160 > >> > Welcome to cassandra CLI. > >> > > >> > Type 'help' or '?' for help. Type 'quit' or 'exit' to quit. > >> > cassandra> set Table1.Standard1['jsmith']['first'] = 'John' > >> > Statement processed. > >> > cassandra> set Table1.Standard1['jsmith']['last'] = 'Smith' > >> > Statement processed. > >> > cassandra> set Table1.Standard1['jsmith']['age'] = '42' > >> > Statement processed. > >> > cassandra> get Table1.Standard1['jsmith'] > >> > Error: CQL Execution Error > >> > cassandra> > >> > > >> > > >> > > >> > > >> > > >> > cassandra output > >> > sudo ./bin/cassandra -f > >> > Listening for transport dt_socket at address: 8888 > >> > DEBUG - Loading settings from ./bin/../conf/storage-conf.xml > >> > DEBUG - adding Super1 as 0 > >> > DEBUG - adding Standard2 as 1 > >> > DEBUG - adding Standard1 as 2 > >> > DEBUG - adding StandardByTime1 as 3 > >> > DEBUG - adding LocationInfo as 4 > >> > DEBUG - adding HintsColumnFamily as 5 > >> > DEBUG - Starting to listen on 127.0.0.1:7001 > >> > INFO - Cassandra starting up... > >> > DEBUG - Compiling CQL query ... > >> > DEBUG - AST: (A_SET (A_COLUMN_ACCESS Table1 Standard1 'jsmith' > 'first') > >> > 'John') > >> > DEBUG - Executing CQL query ... > >> > DEBUG - locally writing writing key jsmith to 127.0.0.1:7000 > >> > DEBUG - Compiling CQL query ... > >> > DEBUG - AST: (A_SET (A_COLUMN_ACCESS Table1 Standard1 'jsmith' 'last') > >> > 'Smith') > >> > DEBUG - Executing CQL query ... > >> > DEBUG - locally writing writing key jsmith to 127.0.0.1:7000 > >> > DEBUG - Compiling CQL query ... > >> > DEBUG - AST: (A_SET (A_COLUMN_ACCESS Table1 Standard1 'jsmith' 'age') > >> > '42') > >> > DEBUG - Executing CQL query ... > >> > DEBUG - locally writing writing key jsmith to 127.0.0.1:7000 > >> > DEBUG - Compiling CQL query ... > >> > DEBUG - AST: (A_GET (A_COLUMN_ACCESS Table1 Standard1 'jsmith')) > >> > DEBUG - Executing CQL query ... > >> > DEBUG - weakreadlocal reading SliceFromReadCommand(table='Table1', > >> > key='jsmith', columnFamily='Standard1', isAscending='true', > limit='-1', > >> > count='2147483647') > >> > ERROR - Exception was generated at : 07/06/2009 17:21:30 on thread > >> > pool-1-thread-1 > >> > 1 > >> > java.lang.ArrayIndexOutOfBoundsException: 1 > >> > at org.apache.cassandra.db.Table.getSliceFrom(Table.java:612) > >> > at > >> > > >> > > org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:57) > >> > at > >> > > >> > > org.apache.cassandra.service.StorageProxy.weakReadLocal(StorageProxy.java:600) > >> > at > >> > > >> > > org.apache.cassandra.service.StorageProxy.readProtocol(StorageProxy.java:303) > >> > at > >> > > >> > > org.apache.cassandra.cql.common.ColumnRangeQueryRSD.getRows(ColumnRangeQueryRSD.java:101) > >> > at > >> > org.apache.cassandra.cql.common.QueryPlan.execute(QueryPlan.java:41) > >> > at > >> > > >> > > org.apache.cassandra.cql.driver.CqlDriver.executeQuery(CqlDriver.java:45) > >> > at > >> > > >> > > org.apache.cassandra.service.CassandraServer.executeQuery(CassandraServer.java:491) > >> > at > >> > > >> > > org.apache.cassandra.service.Cassandra$Processor$executeQuery.process(Cassandra.java:1323) > >> > at > >> > > >> > > org.apache.cassandra.service.Cassandra$Processor.process(Cassandra.java:839) > >> > at > >> > > >> > > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252) > >> > at > >> > > >> > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > >> > at > >> > > >> > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > >> > at java.lang.Thread.run(Thread.java:619) > >> > > >> > > >> > > >> > > >> > > >> > > >> > svn version : Revision: 791656 > >> > > >> > java -version > >> > java version "1.6.0_14" > >> > Java(TM) SE Runtime Environment (build 1.6.0_14-b08) > >> > Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing) > >> > > >> > > >> > > >> > > > > > > --0016368325a830b0e0046e12fc59 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable thanks a lot, it works now!

On Mon, Jul 6= , 2009 at 5:41 PM, Jonathan Ellis <jbellis@gmail.com> wrote:
Sorry, 277 is the right issue. =A0Just one patch.

Once it's applied it will be in svn trunk.

On Mon, Jul 6, 2009 at 7:35 PM, Kevin
Castiglione<kevincastiglione@gmail.com> wrote:
> thanks for this:
> http://issues.apache.org/jira/browse/CASSANDRA-272
>
> do i need to apply all 3 patches?
>
> or can you tell me which svn version i can use so that it is working?<= br> > thanks again!
> On Mon, Jul 6, 2009 at 5:31 PM, Jonathan Ellis <jbellis@gmail.com> wrote:
>>
>> This is a known problem in trunk. =A0It's fixed by the patch i= n issue
>> 272, which should be applied tonight or tomorrow.
>>
>> -Jonathan
>>
>> On Mon, Jul 6, 2009 at 7:27 PM, Kevin
>> Castiglione<kevin= castiglione@gmail.com> wrote:
>> > hi
>> > i just got cassandra compiled.
>> > but the cli example from wiki is not working. the conf files = are
>> > untouched.
>> > can you help me out here!
>> > thanks
>> >
>> > CLI output:
>> > ./cassandra-cli --host localhost --port 9160
>> > Connected to localhost/9160
>> > Welcome to cassandra CLI.
>> >
>> > Type 'help' or '?' for help. Type 'quit&#= 39; or 'exit' to quit.
>> > cassandra> set Table1.Standard1['jsmith']['fir= st'] =3D 'John'
>> > Statement processed.
>> > cassandra> set Table1.Standard1['jsmith']['las= t'] =3D 'Smith'
>> > Statement processed.
>> > cassandra> set Table1.Standard1['jsmith']['age= '] =3D '42'
>> > Statement processed.
>> > cassandra> get Table1.Standard1['jsmith']
>> > Error: CQL Execution Error
>> > cassandra>
>> >
>> >
>> >
>> >
>> >
>> > cassandra output
>> > sudo ./bin/cassandra -f
>> > Listening for transport dt_socket at address: 8888
>> > DEBUG - Loading settings from ./bin/../conf/storage-conf.xml<= br> >> > DEBUG - adding Super1 as 0
>> > DEBUG - adding Standard2 as 1
>> > DEBUG - adding Standard1 as 2
>> > DEBUG - adding StandardByTime1 as 3
>> > DEBUG - adding LocationInfo as 4
>> > DEBUG - adding HintsColumnFamily as 5
>> > DEBUG - Starting to listen on 127.0.0.1:7001
>> > INFO - Cassandra starting up...
>> > DEBUG - Compiling CQL query ...
>> > DEBUG - AST: (A_SET (A_COLUMN_ACCESS Table1 Standard1 'js= mith' 'first')
>> > 'John')
>> > DEBUG - Executing CQL query ...
>> > DEBUG - locally writing writing key jsmith to 127.0.0.1:7000
>> > DEBUG - Compiling CQL query ...
>> > DEBUG - AST: (A_SET (A_COLUMN_ACCESS Table1 Standard1 'js= mith' 'last')
>> > 'Smith')
>> > DEBUG - Executing CQL query ...
>> > DEBUG - locally writing writing key jsmith to 127.0.0.1:7000
>> > DEBUG - Compiling CQL query ...
>> > DEBUG - AST: (A_SET (A_COLUMN_ACCESS Table1 Standard1 'js= mith' 'age')
>> > '42')
>> > DEBUG - Executing CQL query ...
>> > DEBUG - locally writing writing key jsmith to 127.0.0.1:7000
>> > DEBUG - Compiling CQL query ...
>> > DEBUG - AST: (A_GET (A_COLUMN_ACCESS Table1 Standard1 'js= mith'))
>> > DEBUG - Executing CQL query ...
>> > DEBUG - weakreadlocal reading SliceFromReadCommand(table=3D&#= 39;Table1',
>> > key=3D'jsmith', columnFamily=3D'Standard1', i= sAscending=3D'true', limit=3D'-1',
>> > count=3D'2147483647')
>> > ERROR - Exception was generated at : 07/06/2009 17:21:30 on t= hread
>> > pool-1-thread-1
>> > 1
>> > java.lang.ArrayIndexOutOfBoundsException: 1
>> > =A0=A0=A0=A0=A0=A0=A0 at org.apache.cassandra.db.Table.getSli= ceFrom(Table.java:612)
>> > =A0=A0=A0=A0=A0=A0=A0 at
>> >
>> > org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFrom= ReadCommand.java:57)
>> > =A0=A0=A0=A0=A0=A0=A0 at
>> >
>> > org.apache.cassandra.service.StorageProxy.weakReadLocal(Stora= geProxy.java:600)
>> > =A0=A0=A0=A0=A0=A0=A0 at
>> >
>> > org.apache.cassandra.service.StorageProxy.readProtocol(Storag= eProxy.java:303)
>> > =A0=A0=A0=A0=A0=A0=A0 at
>> >
>> > org.apache.cassandra.cql.common.ColumnRangeQueryRSD.getRows(C= olumnRangeQueryRSD.java:101)
>> > =A0=A0=A0=A0=A0=A0=A0 at
>> > org.apache.cassandra.cql.common.QueryPlan.execute(QueryPlan.j= ava:41)
>> > =A0=A0=A0=A0=A0=A0=A0 at
>> >
>> > org.apache.cassandra.cql.driver.CqlDriver.executeQuery(CqlDri= ver.java:45)
>> > =A0=A0=A0=A0=A0=A0=A0 at
>> >
>> > org.apache.cassandra.service.CassandraServer.executeQuery(Cas= sandraServer.java:491)
>> > =A0=A0=A0=A0=A0=A0=A0 at
>> >
>> > org.apache.cassandra.service.Cassandra$Processor$executeQuery= .process(Cassandra.java:1323)
>> > =A0=A0=A0=A0=A0=A0=A0 at
>> >
>> > org.apache.cassandra.service.Cassandra$Processor.process(Cass= andra.java:839)
>> > =A0=A0=A0=A0=A0=A0=A0 at
>> >
>> > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(= TThreadPoolServer.java:252)
>> > =A0=A0=A0=A0=A0=A0=A0 at
>> >
>> > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread= PoolExecutor.java:886)
>> > =A0=A0=A0=A0=A0=A0=A0 at
>> >
>> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool= Executor.java:908)
>> > =A0=A0=A0=A0=A0=A0=A0 at java.lang.Thread.run(Thread.java:619= )
>> >
>> >
>> >
>> >
>> >
>> >
>> > svn version : Revision: 791656
>> >
>> > java -version
>> > java version "1.6.0_14"
>> > Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
>> > Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, shari= ng)
>> >
>> >
>> >
>> >
>
>

--0016368325a830b0e0046e12fc59--