Cassandra因org.apache.cassandra.io.FSWriteError而关闭:java.nio.file.NoSuchFileException

时间:2018-10-23 13:33:26

标签: java cassandra cassandra-2.1

启动时抛出Canssandra(2.1.13)并抛出“ org.apache.cassandra.io.FSWriteError:java.nio.file.NoSuchFileException”

这是堆栈跟踪:

  

错误[MemtableFlushWriter:1] 2018-10-22 03:24:41,191   CassandraDaemon.java:229-线程异常   线程[MemtableFlushWriter:1,5,main]   org.apache.cassandra.io.FSWriteError:   java.nio.file.NoSuchFileException:

     

/var/data/system/schema_columnfamilies-45f5b36024bc3f83a3631034ea4fa697/system-schema_columnfamilies-tmp-ka-60-Digest.sha1           在org.apache.cassandra.io.util.DataIntegrityMetadata $ ChecksumWriter.writeFullChecksum(Da​​taIntegrityMetadata.java:155)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.io.compress.CompressedSequentialWriter.writeFullChecksum(CompressedSequentialWriter.java:285)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.io.sstable.SSTableWriter.close(SSTableWriter.java:518)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.io.sstable.SSTableWriter.finish(SSTableWriter.java:455)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.io.sstable.SSTableWriter.closeAndOpenReader(SSTableWriter.java:447)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.io.sstable.SSTableWriter.closeAndOpenReader(SSTableWriter.java:442)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.db.Memtable $ FlushRunnable.writeSortedContents(Memtable.java:389)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.db.Memtable $ FlushRunnable.runMayThrow(Memtable.java:335)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在com.google.common.util.concurrent.MoreExecutors $ SameThreadExecutorService.execute(MoreExecutors.java:297)   〜[guava-16.0.jar:na]           在org.apache.cassandra.db.ColumnFamilyStore $ Flush.run(ColumnFamilyStore.java:1120)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)   〜[na:1.8.0_181]           在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)   〜[na:1.8.0_181]           在java.lang.Thread.run(Thread.java:748)〜[na:1.8.0_181]

     

由于:java.nio.file.NoSuchFileException:   /var/data/system/schema_columnfamilies-45f5b36024bc3f83a3631034ea4fa697/system-schema_columnfamilies-tmp-ka-60-Digest.sha1           在sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)   〜[na:1.8.0_181]           在sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)   〜[na:1.8.0_181]           在sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)   〜[na:1.8.0_181]           在sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)   〜[na:1.8.0_181]           在java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)   〜[na:1.8.0_181]           在java.nio.file.Files.newOutputStream(Files.java:216)〜[na:1.8.0_181]           在java.nio.file.Files.newBufferedWriter(Files.java:2860)〜[na:1.8.0_181]           在org.apache.cassandra.io.util.DataIntegrityMetadata $ ChecksumWriter.writeFullChecksum(Da​​taIntegrityMetadata.java:150)   〜[apache-cassandra-2.1.13.jar:2.1.13]           ...省略了13个常见框架

     

错误[CompactionExecutor:1] 2018-10-22 03:24:41,192   CassandraDaemon.java:229-线程异常   Thread [CompactionExecutor:1,1,main] java.lang.RuntimeException:已尝试   硬链接到不存在的文件   /var/data/system/schema_keyspaces-b0f2235744583cdb9631c43e59ce3676/system-schema_keyspaces-tmp-ka-65-Index.db           在org.apache.cassandra.io.util.FileUtils.createHardLink(FileUtils.java:90)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.io.sstable.SSTableWriter.makeTmpLinks(SSTableWriter.java:390)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.io.sstable.SSTableWriter.finish(SSTableWriter.java:460)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.io.sstable.SSTableRewriter.switchWriter(SSTableRewriter.java:398)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.io.sstable.SSTableRewriter.finishAndMaybeThrow(SSTableRewriter.java:453)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.io.sstable.SSTableRewriter.finish(SSTableRewriter.java:435)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.io.sstable.SSTableRewriter.finish(SSTableRewriter.java:415)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:214)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:73)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在org.apache.cassandra.db.compaction.CompactionManager $ BackgroundCompactionCandidate.run(CompactionManager.java:263)   〜[apache-cassandra-2.1.13.jar:2.1.13]           在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)   〜[na:1.8.0_181]           在java.util.concurrent.FutureTask.run(FutureTask.java:266)〜[na:1.8.0_181]           在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)   〜[na:1.8.0_181]           在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)   [na:1.8.0_181]           在java.lang.Thread.run(Thread.java:748)[na:1.8.0_181]

     

错误[MemtableFlushWriter:1] 2018-10-22 03:24:41,192   StorageService.java:453-停止闲聊警告   [MemtableFlushWriter:1] 2018-10-22 03:24:41,193   StorageService.java:359-通过操作员请求INFO停止八卦   [MemtableFlushWriter:1] 2018-10-22 03:24:41,193 Gossiper.java:1455-   宣布关闭

找到了一个相关的链接https://support.datastax.com/hc/en-us/articles/204424739-Apache-Cassandra-fails-to-start-with-FSReadError-and-java-io-EOFException-,但这是关于FSReadError的,而在上面的堆栈跟踪中,问题是FSWriteError,其中文件不存在。

这是与安装相关的问题还是已知的问题,可以解决还是特定于版本?

如果没记错,那么这些tmp文件会在压缩时生成,并导致出现问题。目前无法在此处继续进行操作,并在此处查找指针。

谢谢!

0 个答案:

没有答案