Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 61043 invoked from network); 7 Jul 2009 00:41:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jul 2009 00:41:34 -0000 Received: (qmail 16287 invoked by uid 500); 7 Jul 2009 00:41:44 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 16265 invoked by uid 500); 7 Jul 2009 00:41:44 -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 16256 invoked by uid 99); 7 Jul 2009 00:41:44 -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:41:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 209.85.219.221 as permitted sender) Received: from [209.85.219.221] (HELO mail-ew0-f221.google.com) (209.85.219.221) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 00:41:34 +0000 Received: by ewy21 with SMTP id 21so4949235ewy.12 for ; Mon, 06 Jul 2009 17:41:14 -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 :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=P8cm5hwQ/jdLL25vtidRW/8bPjLpjWH4gFcuP3cstDs=; b=tL8/WpAC17n+PN0NCQsOGLROSbbJ8bFyw7rEfWWYoEVjuPRV/YiEVj2b53sz9H18n3 L1X0Sw1mFR/TjG7OW9ukwZlInY1GLtwjrb9XxUZ6crybqk+B6shlKjEPZ9zWas/7QIUC 9Z0Qmc8kvoMQOm4MJOj6VUYP+jVaoVLGeriF8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=FpEXBfybCepb/7lEfNk8VzjX/xIShUtamgZyIj0i1Bo83ixrvf5Z78FfXKaMTxnaA2 mvFS93rkCP97Ye7BJY9/Zhh8e/gDZSj5w/9+ClFJYN6/OXvulZKkHJJUKH2SJFLO8vuG J8jvy3gUbvqAz1ed1tem/JUtB4txjXBhUqkKs= MIME-Version: 1.0 Received: by 10.216.11.7 with SMTP id 7mr1349763wew.125.1246927274495; Mon, 06 Jul 2009 17:41:14 -0700 (PDT) In-Reply-To: References: Date: Mon, 6 Jul 2009 19:41:14 -0500 Message-ID: Subject: Re: cassandra Cli example from wiki error From: Jonathan Ellis To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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. =A0It'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'] =3D 'John' >> > Statement processed. >> > cassandra> set Table1.Standard1['jsmith']['last'] =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 >> > 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=3D'Table1', >> > key=3D'jsmith', columnFamily=3D'Standard1', isAscending=3D'true', limi= t=3D'-1', >> > count=3D'2147483647') >> > ERROR - Exception was generated at : 07/06/2009 17:21:30 on thread >> > pool-1-thread-1 >> > 1 >> > java.lang.ArrayIndexOutOfBoundsException: 1 >> > =A0=A0=A0=A0=A0=A0=A0 at org.apache.cassandra.db.Table.getSliceFrom(Ta= ble.java:612) >> > =A0=A0=A0=A0=A0=A0=A0 at >> > >> > org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadComma= nd.java:57) >> > =A0=A0=A0=A0=A0=A0=A0 at >> > >> > org.apache.cassandra.service.StorageProxy.weakReadLocal(StorageProxy.j= ava:600) >> > =A0=A0=A0=A0=A0=A0=A0 at >> > >> > org.apache.cassandra.service.StorageProxy.readProtocol(StorageProxy.ja= va:303) >> > =A0=A0=A0=A0=A0=A0=A0 at >> > >> > org.apache.cassandra.cql.common.ColumnRangeQueryRSD.getRows(ColumnRang= eQueryRSD.java:101) >> > =A0=A0=A0=A0=A0=A0=A0 at >> > org.apache.cassandra.cql.common.QueryPlan.execute(QueryPlan.java:41) >> > =A0=A0=A0=A0=A0=A0=A0 at >> > >> > org.apache.cassandra.cql.driver.CqlDriver.executeQuery(CqlDriver.java:= 45) >> > =A0=A0=A0=A0=A0=A0=A0 at >> > >> > org.apache.cassandra.service.CassandraServer.executeQuery(CassandraSer= ver.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(Cassandra.jav= a:839) >> > =A0=A0=A0=A0=A0=A0=A0 at >> > >> > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPo= olServer.java:252) >> > =A0=A0=A0=A0=A0=A0=A0 at >> > >> > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu= tor.java:886) >> > =A0=A0=A0=A0=A0=A0=A0 at >> > >> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.= 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, sharing) >> > >> > >> > >> > > >