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 599D810AA3 for ; Mon, 28 Apr 2014 21:41:21 +0000 (UTC) Received: (qmail 66284 invoked by uid 500); 28 Apr 2014 21:41:18 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 66204 invoked by uid 500); 28 Apr 2014 21:41:17 -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 66110 invoked by uid 99); 28 Apr 2014 21:41:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2014 21:41:16 +0000 Date: Mon, 28 Apr 2014 21:41:16 +0000 (UTC) From: "Alex Liu (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-7093) ConfigHelper.setInputColumnFamily incompatible with upper-cased keyspaces since 2.0.7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-7093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13983606#comment-13983606 ] Alex Liu commented on CASSANDRA-7093: ------------------------------------- The attached patch quotes the keyspace name at Hadoop side. Since Driver invalidates JAVA_317, we have to fix it at C* Hadoop side. > ConfigHelper.setInputColumnFamily incompatible with upper-cased keyspaces since 2.0.7 > ------------------------------------------------------------------------------------- > > Key: CASSANDRA-7093 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7093 > Project: Cassandra > Issue Type: Bug > Reporter: Maxime Nay > Assignee: Alex Liu > Attachments: 7093.txt > > > Hi, > We have a keyspace starting with an upper-case character: Visitors. > We are trying to run a map reduce job on one of the column family of this keyspace. > To specify the keyspace it seems we have to use: > org.apache.cassandra.hadoop. > ConfigHelper.setInputColumnFamily(conf, keyspace, columnFamily); > If we do: > ConfigHelper.setInputColumnFamily(conf, "Visitors", columnFamily); we get: > com.datastax.driver.core.exceptions.InvalidQueryException: Keyspace 'visitors' does not exist > at com.datastax.driver.core.exceptions.InvalidQueryException.copy(InvalidQueryException.java:35) > at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:256) > at com.datastax.driver.core.SessionManager.setKeyspace(SessionManager.java:335) > ... > And if we do: > ConfigHelper.setInputColumnFamily(conf, "\"Visitors\"", columnFamily); we get: > Exception in thread "main" java.lang.RuntimeException: InvalidRequestException(why:No such keyspace: "Visitors") > at org.apache.cassandra.hadoop.AbstractColumnFamilyInputFormat.getRangeMap(AbstractColumnFamilyInputFormat.java:339) > at org.apache.cassandra.hadoop.AbstractColumnFamilyInputFormat.getSplits(AbstractColumnFamilyInputFormat.java:125) > at org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:962) > at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:979) > ... > This is working just fine if the keyspace is lowercase. > And it was working just fine with Cassandra 2.0.6. But with Cassandra 2.0.7, and the addition of Datastax's java driver in the dependencies, I am getting this error. -- This message was sent by Atlassian JIRA (v6.2#6252)