Created
August 11, 2012 02:05
-
-
Save pcn/3319957 to your computer and use it in GitHub Desktop.
Corrupt sstable I guess
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (CassandraHaag 1/12) pn@domU-12-31-39-05-46-11:/mnt/tmp$ sudo sstablekeys /mnt/tmp/Haag/StudentEvents-hd-103-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. | |
| Exception in thread "main" java.io.IOError: java.io.EOFException | |
| at org.apache.cassandra.io.sstable.KeyIterator.computeNext(KeyIterator.java:66) | |
| at org.apache.cassandra.io.sstable.KeyIterator.computeNext(KeyIterator.java:36) | |
| at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:140) | |
| at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:135) | |
| at org.apache.cassandra.tools.SSTableExport.enumeratekeys(SSTableExport.java:217) | |
| at org.apache.cassandra.tools.SSTableExport.main(SSTableExport.java:405) | |
| Caused by: java.io.EOFException | |
| at java.io.RandomAccessFile.readFully(RandomAccessFile.java:399) | |
| at java.io.RandomAccessFile.readFully(RandomAccessFile.java:377) | |
| at org.apache.cassandra.io.util.RandomAccessReader.readBytes(RandomAccessReader.java:324) | |
| at org.apache.cassandra.utils.ByteBufferUtil.read(ByteBufferUtil.java:393) | |
| at org.apache.cassandra.utils.ByteBufferUtil.readWithShortLength(ByteBufferUtil.java:375) | |
| at org.apache.cassandra.io.sstable.KeyIterator.computeNext(KeyIterator.java:60) | |
| ... 5 more |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This happened when restoring files that were SNAPPY compressed without restoring them. Resolution was to build snappy from source, build snzip (find it at github) name the binary "snappy" and rename the sstable files to .snappy and decompress them all.