Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C68FD8AF for ; Fri, 8 Mar 2013 15:06:13 +0000 (UTC) Received: (qmail 16601 invoked by uid 500); 8 Mar 2013 15:06:13 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 16574 invoked by uid 500); 8 Mar 2013 15:06:13 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 16534 invoked by uid 99); 8 Mar 2013 15:06:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Mar 2013 15:06:12 +0000 Date: Fri, 8 Mar 2013 15:06:12 +0000 (UTC) From: "tony (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-5320) Thrift is not able to use ColumnFamilies created with cqlsh 3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 tony created CASSANDRA-5320: ------------------------------- Summary: Thrift is not able to use ColumnFamilies created with cqlsh 3.0 Key: CASSANDRA-5320 URL: https://issues.apache.org/jira/browse/CASSANDRA-5320 Project: Cassandra Issue Type: Bug Affects Versions: 1.2.0 Environment: Hector 1.1-3 Reporter: tony Priority: Minor I have created a ColumnFamily with cqlsh, however this cf can not be used with thrift, while the same cf created with cassandra-cli works with thrift. I create the column family with cqlsh : CREATE TABLE Persons ( familyName varchar, firstName varchar, address varchar, PRIMARY KEY(familyName)); And in java code : Cluster cluster = HFactory.getOrCreateCluster("Test Cluster","localhost:9160"); Keyspace keyspace = HFactory.createKeyspace("customerdemo", cluster); StringSerializer stringSerializer = StringSerializer.get(); Mutator mutator = HFactory.createMutator(keyspace, stringSerializer); mutator.insert("jsmith", "Persons", HFactory.createStringColumn("first", "John")); The result is : Caused by: InvalidRequestException(why:unconfigured columnfamily Personbis) at org.apache.cassandra.thrift.Cassandra$batch_mutate_result.read(Cassandra.java:20350) The same column family works with thrift when created through cassandra-cli : CREATE COLUMN FAMILY Persons WITH comparator = UTF8Type AND key_validation_class=UTF8Type AND column_metadata = [ {column_name:familyName, validation_class: UTF8Type} {column_name:firstName, validation_class: UTF8Type} {column_name:address, validation_class: UTF8Type} ]; Java code result : It works. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira