chris erway created CASSANDRA-5312:
--------------------------------------

             Summary: json2sstable throws java.lang.ClassCastException when 
using Murmur3
                 Key: CASSANDRA-5312
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5312
             Project: Cassandra
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.2.1
         Environment: DataStax community AMI
            Reporter: chris erway
            Priority: Minor


Tried to import some JSON tables using json2sstable today on a new cluster 
using the Murmur3Partitioner.  It threw this exception:

$ sudo -u cassandra json2sstable -K Keyspace -c CFName 
Keyspace-CFName-hd-1-Data.db.json Keyspace-CFName-hd-1-Data.db
log4j:WARN No appenders could be found for logger 
(org.apache.cassandra.config.DatabaseDescriptor).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.
Importing 21 keys...
java.lang.ClassCastException: org.apache.cassandra.utils.Murmur3BloomFilter 
cannot be cast to org.apache.cassandra.utils.Murmur2BloomFilter
        at 
org.apache.cassandra.utils.FilterFactory.serialize(FilterFactory.java:56)
        at 
org.apache.cassandra.io.sstable.SSTableWriter$IndexWriter.close(SSTableWriter.java:482)
        at 
org.apache.cassandra.io.sstable.SSTableWriter.closeAndOpenReader(SSTableWriter.java:325)
        at 
org.apache.cassandra.io.sstable.SSTableWriter.closeAndOpenReader(SSTableWriter.java:319)
        at 
org.apache.cassandra.tools.SSTableImport.importUnsorted(SSTableImport.java:379)
        at 
org.apache.cassandra.tools.SSTableImport.importJson(SSTableImport.java:313)
        at org.apache.cassandra.tools.SSTableImport.main(SSTableImport.java:535)
ERROR: org.apache.cassandra.utils.Murmur3BloomFilter cannot be cast to 
org.apache.cassandra.utils.Murmur2BloomFilter

There's a related issue in CASSANDRA-4196 having to do with bulk loading that 
suggests a fix might involve passing the right type down to the FilterFactory 
(?)

--
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

Reply via email to