WARN \[CompactionExecutor:6\] 2019-07-3116:32:15,726 CompactionTask.java:298 - Not enough space for compaction, estimated sstables = 8643, expected write size = 2320284556243 ERROR \[CompactionExecutor:6\] 2019-07-3116:32:15,727 CassandraDaemon.java:195 - Exception in thread Thread\[CompactionExecutor:6,1,main\] java.lang.RuntimeException: Not enough space for compaction, estimated sstables = 8643, expected write size = 2320284556243 at org.apache.cassandra.db.compaction.CompactionTask.checkAvailableDiskSpace(CompactionTask.java:299) ~\[apache-cassandra-2.2.14.jar:2.2.14\] at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:119) ~\[apache-cassandra-2.2.14.jar:2.2.14\] at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~\[apache-cassandra-2.2.14.jar:2.2.14\] at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:74) ~\[apache-cassandra-2.2.14.jar:2.2.14\] at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59) ~\[apache-cassandra-2.2.14.jar:2.2.14\] at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionCandidate.run(CompactionManager.java:257) ~\[apache-cassandra-2.2.14.jar:2.2.14\] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~\[na:1.8.0_211\] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~\[na:1.8.0_211\] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~\[na:1.8.0_211\] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) \[na:1.8.0_211\] at java.lang.Thread.run(Thread.java:748) \[na:1.8.0_211\]
$ sstablesplit -h usage: sstablesplit \[options\] <filename> \[<filename>\]* -- Split the provided sstables files in sstables of maximum provided filesize (see option --size). -- Options are: --debug display stack traces -h,--help display this help message --no-snapshot don't snapshot the sstables before splitting -s,--size <size> maximum size in MB for the output sstables (default: 50)
Exception in thread "main" java.lang.OutOfMemoryError: Direct buffer memory at java.nio.Bits.reserveMemory(Bits.java:694) at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123) at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311) at org.apache.cassandra.io.compress.BufferType$2.allocate(BufferType.java:35) at org.apache.cassandra.io.compress.CompressedSequentialWriter.<init>(CompressedSequentialWriter.java:70) at org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:168) at org.apache.cassandra.io.sstable.format.big.BigTableWriter.<init>(BigTableWriter.java:75) at org.apache.cassandra.io.sstable.format.big.BigFormat$WriterFactory.open(BigFormat.java:107) at org.apache.cassandra.io.sstable.format.SSTableWriter.create(SSTableWriter.java:84) at org.apache.cassandra.db.compaction.writers.MaxSSTableSizeWriter.append(MaxSSTableSizeWriter.java:83) at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:186) at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:74) at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59) at org.apache.cassandra.db.compaction.SSTableSplitter.split(SSTableSplitter.java:44) at org.apache.cassandra.tools.StandaloneSplitter.main(StandaloneSplitter.java:156)