cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hussein Baghdadi (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-4363) Cassandra 1.1.1 throws errors when trying the new CQL 3
Date Wed, 27 Jun 2012 22:00:44 GMT


Hussein Baghdadi commented on CASSANDRA-4363:

I downloaded Cassandra 1.1.1 , configure it and run it : ./cassandra -f

./cqlsh --cql3

         WITH strategy_class = 'org.apache.cassandra.locator.SimpleStrategy'
         AND strategy_options:replication_factor='1';


pid blob,
period int,
targetid blob,
sum counter,
PRIMARY KEY (pid, period, targetid)

And I faced the exception I posted earlier.

default@mks] describe;
Keyspace: mks:
  Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
  Durable Writes: true
    Options: [replication_factor:1]
> Cassandra 1.1.1 throws errors when trying the new CQL 3
> -------------------------------------------------------
>                 Key: CASSANDRA-4363
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: OSX 10.7.4 , java version "1.6.0_33" , Cassandra 1.1.1
>            Reporter: Hussein Baghdadi
>            Assignee: Pavel Yaskevich
> I downloaded Cassandra 1.1.1 and launched cqlsh under the version 3
> I tried to create a new column family:
> CREATE TABLE stats (
>  pid          blob,
>  period      int,
>  targetid     blob,
>  sum         counter,
> PRIMARY KEY (pid, period, targetid)
> );
> But I got this:
> Traceback (most recent call last): File "./cqlsh", line 908, in perform_statement self.cursor.execute(statement,
decoder=decoder) File "./../lib/", line
117, in execute response = self.handle_cql_execution_errors(doquery, prepared_q, compress)
File "./../lib/", line 132, in handle_cql_execution_errors
return executor(*args, **kwargs) File "./../lib/",
line 1583, in execute_cql_query self.send_execute_cql_query(query, compression) File "./../lib/",
line 1593, in send_execute_cql_query self.oprot.trans.flush() File "./../lib/",
line 293, in flush self._trans.write(buf) File "./../lib/",
line 117, in write plus = self.handle.send(buff) error: [Errno 32] Broken pipe
> And on the server console:
> Error occurred during processing of message. java.lang.IllegalArgumentException at java.nio.Buffer.limit(
at org.apache.cassandra.db.marshal.AbstractCompositeType.getBytes(
at org.apache.cassandra.db.marshal.AbstractCompositeType.getWithShortLength(
at org.apache.cassandra.db.marshal.AbstractCompositeType.getString(
at org.apache.cassandra.config.CFMetaData.validate( at org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(
at org.apache.cassandra.cql3.statements.CreateColumnFamilyStatement.announceMigration(
at org.apache.cassandra.cql3.statements.SchemaAlteringStatement.execute(
at org.apache.cassandra.cql3.QueryProcessor.processStatement( at org.apache.cassandra.cql3.QueryProcessor.process(
at org.apache.cassandra.thrift.CassandraServer.execute_cql_query(
at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql_query.getResult(
at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql_query.getResult(
at org.apache.thrift.ProcessFunction.process( at org.apache.thrift.TBaseProcessor.process(
at org.apache.cassandra.thrift.CustomTThreadPoolServer$
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( at
java.util.concurrent.ThreadPoolExecutor$ at

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message