You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jimmy Mårdell (JIRA)" <ji...@apache.org> on 2015/02/25 18:21:04 UTC

[jira] [Created] (CASSANDRA-8864) NPE in CQLSSTableWriter when bulk loading data from Hadoop

Jimmy Mårdell created CASSANDRA-8864:
----------------------------------------

             Summary: NPE in CQLSSTableWriter when bulk loading data from Hadoop
                 Key: CASSANDRA-8864
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8864
             Project: Cassandra
          Issue Type: Bug
            Reporter: Jimmy Mårdell


CASSANDRA-8280 introduced a bug in CQLSSTableWriter when used by CqlBulkRecordWriter. It assumes fields in the DatabaseDescriptor is set when they are not, causing NPE.

Relevant stack trace below.

Error: java.lang.NullPointerException at org.apache.cassandra.config.DatabaseDescriptor.createAllDirectories(DatabaseDescriptor.java:605)
  at org.apache.cassandra.db.Keyspace.<clinit>(Keyspace.java:73)
  at org.apache.cassandra.cql3.statements.UpdateStatement.addUpdateForKey(UpdateStatement.java:109)
  at org.apache.cassandra.io.sstable.CQLSSTableWriter.rawAddRow(CQLSSTableWriter.java:218)
  at com.spotify.hdfs2cass.cassandra.cql.CrunchCqlBulkRecordWriter.write(CrunchCqlBulkRecordWriter.java:114)
  at com.spotify.hdfs2cass.cassandra.cql.CrunchCqlBulkRecordWriter.write(CrunchCqlBulkRecordWriter.java:51)
  at org.apache.crunch.io.CrunchOutputs.write(CrunchOutputs.java:133)
  at org.apache.crunch.impl.mr.emit.MultipleOutputEmitter.emit(MultipleOutputEmitter.java:41)
  at org.apache.crunch.MapFn.process(MapFn.java:34)
  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)