You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "DOAN DuyHai (JIRA)" <ji...@apache.org> on 2013/11/02 10:36:17 UTC

[jira] [Commented] (CASSANDRA-6140) Cassandra-cli backward compatibility issue with Cassandra 2.0.1

    [ https://issues.apache.org/jira/browse/CASSANDRA-6140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13811922#comment-13811922 ] 

DOAN DuyHai commented on CASSANDRA-6140:
----------------------------------------

I just pull Cassandra from github and tried with trunk (cassandra-2.1-SNAPSHOT) and also with branch cassandra-2.0, same result.

 The stack trace is the same

> Cassandra-cli backward compatibility issue with Cassandra 2.0.1
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-6140
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6140
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: Linux Ubuntu, Cassandra 2.0.0
>            Reporter: DOAN DuyHai
>
> Currently we are using Cassandra 1.2.6 and we want to migrate to 2.0.1.
>  We still use Thrift for some column families (migration to CQL3 is not done yet for them). We have cassandra-cli script to drop/create fresh keyspace, re-create column families and populate referential data:
> *Schema creation script*
> {code}
> drop keyspace xxx;
> create keyspace xxx with placement_strategy ...
> create column family offers with 
> key_validation_class = UTF8Type and
> comparator = 'CompositeType(UTF8Type)'  and 
> default_validation_class = UTF8Type;
> {code}
> *Data insertion script*:
> {code}
> set offers['OFFER1'][PRODUCT1']='test_product';
> ...
> {code}
>  When executing the data insertion script with Cassandra 2.0.1, we have the following stack trace:
> {code}
> Invalid cell for CQL3 table offers. The CQL3 column component (COL1) does not correspond to a defined CQL3 column
> InvalidRequestException(why:Invalid cell for CQL3 table offers. The CQL3 column component (COL1) does not correspond to a defined CQL3 column)
> 	at org.apache.cassandra.thrift.Cassandra$insert_result$insert_resultStandardScheme.read(Cassandra.java:21447)
> 	at org.apache.cassandra.thrift.Cassandra$insert_result$insert_resultStandardScheme.read(Cassandra.java:21433)
> 	at org.apache.cassandra.thrift.Cassandra$insert_result.read(Cassandra.java:21367)
> 	at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
> 	at org.apache.cassandra.thrift.Cassandra$Client.recv_insert(Cassandra.java:898)
> 	at org.apache.cassandra.thrift.Cassandra$Client.insert(Cassandra.java:882)
> 	at org.apache.cassandra.cli.CliClient.executeSet(CliClient.java:987)
> 	at org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:231)
> 	at org.apache.cassandra.cli.CliMain.processStatementInteractive(CliMain.java:201)
> 	at org.apache.cassandra.cli.CliMain.main(CliMain.java:327)
> {code}
>  This data insertion script works pecfectly with Cassandra 1.2.6.
>  We face the same issue with Cassandra 2.0.0. It looks like the cassandra-cli commands no longer works with Cassandra 2.0.0...
>   



--
This message was sent by Atlassian JIRA
(v6.1#6144)