cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jimmy Mårdell (JIRA) <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-8864) NPE in CQLSSTableWriter when bulk loading data from Hadoop
Date Wed, 25 Feb 2015 17:21:04 GMT
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)

Mime
View raw message