You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Maxime Nay (JIRA)" <ji...@apache.org> on 2014/04/25 23:35:15 UTC
[jira] [Comment Edited] (CASSANDRA-7093)
ConfigHelper.setInputColumnFamily incompatible with upper-cased keyspaces
since 2.0.7
[ https://issues.apache.org/jira/browse/CASSANDRA-7093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13981624#comment-13981624 ]
Maxime Nay edited comment on CASSANDRA-7093 at 4/25/14 9:33 PM:
----------------------------------------------------------------
It is, I guess, since we used OpsCenter to create the Keyspace. Plus I am using Datastax java driver with CQL to insert/read data from the CFs in the keyspace, and it is working just fine.
was (Author: maxime nay):
It is. I am using datastax java driver with CQL just fine to insert/read data from the CF in the keyspace.
> 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
>
> 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)