Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10443

CQLSStableWriter example fails on 3.0rc1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 3.0.0 rc2
    • Component/s: Legacy/Tools
    • Labels:
      None
    • Severity:
      Normal

      Description

      CQLSSTableWriter which works with 2.2.1 does not work with 3.0rc1.
      Something like https://github.com/yukim/cassandra-bulkload-example should be added to the test suite.

      Exception in thread "main" java.lang.RuntimeException: java.lang.ExceptionInInitializerError
      at org.apache.cassandra.io.sstable.SSTableSimpleUnsortedWriter.close(SSTableSimpleUnsortedWriter.java:136)
      at org.apache.cassandra.io.sstable.CQLSSTableWriter.close(CQLSSTableWriter.java:274)
      at com.metawiring.sandbox.BulkLoadExample.main(BulkLoadExample.java:160)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
      Caused by: java.lang.ExceptionInInitializerError
      at org.apache.cassandra.db.Keyspace.initCf(Keyspace.java:372)
      at org.apache.cassandra.db.Keyspace.<init>(Keyspace.java:309)
      at org.apache.cassandra.db.Keyspace.open(Keyspace.java:133)
      at org.apache.cassandra.db.Keyspace.open(Keyspace.java:110)
      at org.apache.cassandra.io.sstable.SSTableTxnWriter.create(SSTableTxnWriter.java:97)
      at org.apache.cassandra.io.sstable.AbstractSSTableSimpleWriter.createWriter(AbstractSSTableSimpleWriter.java:63)
      at org.apache.cassandra.io.sstable.SSTableSimpleUnsortedWriter$DiskWriter.run(SSTableSimpleUnsortedWriter.java:206)
      Caused by: java.lang.NullPointerException
      at org.apache.cassandra.config.DatabaseDescriptor.getFlushWriters(DatabaseDescriptor.java:1153)
      at org.apache.cassandra.db.ColumnFamilyStore.<clinit>(ColumnFamilyStore.java:116)
      ... 7 more

        Attachments

          Activity

            People

            • Assignee:
              carlyeks Carl Yeksigian
              Reporter:
              jshook Jonathan Shook
              Authors:
              Carl Yeksigian
              Reviewers:
              Yuki Morishita
              Tester:
              Jonathan Shook
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: