如何解决cassendra中不存在的/ var / lib / cassandra / data / system / schema_columnfamilies / system-schema_columnfamilies-tmp-ic-131-Index.db文件

时间:2014-11-12 07:01:24

标签: cassandra

任何人都告诉我如何解决Cassandra中不存在的/ var / lib / Cassandra / data / system / schema_columnfamilies / system-schema_columnfamilies-tmp-ic-131-Index.db文件。

显示以下错误:

] java.lang.RuntimeException:java.io.FileNotFoundException:/var/lib/cassandra/data/system/local/system-local-tmp-ic-326-Index.db(Permission denied)         在org.apache.cassandra.io.util.SequentialWriter。(SequentialWriter.java:73)         在org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:108)         在org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:103)         在org.apache.cassandra.io.sstable.SSTableWriter $ IndexWriter。(SSTableWriter.java:442)         在org.apache.cassandra.io.sstable.SSTableWriter。(SSTableWriter.java:92)         在org.apache.cassandra.db.Memtable $ FlushRunnable.createFlushWriter(Memtable.java:517)         在org.apache.cassandra.db.Memtable $ FlushRunnable.writeSortedContents(Memtable.java:465)         at org.apache.cassandra.db.Memtable $ FlushRunnable.runWith(Memtable.java:448)         在org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAwareRunnable.java:48)         在org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)         在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)         at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)         在java.lang.Thread.run(Thread.java:745) 引起:java.io.FileNotFoundException:/var/lib/cassandra/data/system/local/system-local-tmp-ic-326-Index.db(权限被拒绝)         在java.io.RandomAccessFile.open(本机方法)         在java.io.RandomAccessFile。(RandomAccessFile.java:241)         在org.apache.cassandra.io.util.SequentialWriter。(SequentialWriter.java:69)         ......还有12个  INFO 12:33:01,778编写Memtable-schema_columns @ 1367224066(24717/24717序列化/活字节,398 ops) 错误12:33:01,776线程中的异常线程[FlushWriter:2,5,main] java.lang.RuntimeException:java.io.FileNotFoundException:/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-tmp-ic-86-Index.db(Permission denied)         在org.apache.cassandra.io.util.SequentialWriter。(SequentialWriter.java:73)         在org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:108)         在org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:103)         在org.apache.cassandra.io.sstable.SSTableWriter $ IndexWriter。(SSTableWriter.java:442)         在org.apache.cassandra.io.sstable.SSTableWriter。(SSTableWriter.java:92)         在org.apache.cassandra.db.Memtable $ FlushRunnable.createFlushWriter(Memtable.java:517)         在org.apache.cassandra.db.Memtable $ FlushRunnable.writeSortedContents(Memtable.java:465)         at org.apache.cassandra.db.Memtable $ FlushRunnable.runWith(Memtable.java:448)         在org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAwareRunnable.java:48)         在org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)         在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)         at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)         在java.lang.Thread.run(Thread.java:745) 引起:java.io.FileNotFoundException:/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-tmp-ic-86-Index.db(权限被拒绝)         在java.io.RandomAccessFile.open(本机方法)         在java.io.RandomAccessFile。(RandomAccessFile.java:241)         在org.apache.cassandra.io.util.SequentialWriter。(SequentialWriter.java:69)         ......还有12个 错误12:33:01,783线程中的异常线程[FlushWriter:3,5,main] java.lang.RuntimeException:java.io.FileNotFoundException:/var/lib/cassandra/data/system/schema_columns/system-schema_columns-tmp-ic-81-Index.db(Permission denied)         在org.apache.cassandra.io.util.SequentialWriter。(SequentialWriter.java:73)         在org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:108)         在org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:103)         在org.apache.cassandra.io.sstable.SSTableWriter $ IndexWriter。(SSTableWriter.java:442)         在org.apache.cassandra.io.sstable.SSTableWriter。(SSTableWriter.java:92)         在org.apache.cassandra.db.Memtable $ FlushRunnable.createFlushWriter(Memtable.java:517)         在org.apache.cassandra.db.Memtable $ FlushRunnable.writeSortedContents(Memtable.java:465)         at org.apache.cassandra.db.Memtable $ FlushRunnable.runWith(Memtable.java:448)         在org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAwareRunnable.java:48)         在org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)         在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)         at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)         在java.lang.Thread.run(Thread.java:745) 引起:java.io.FileNotFoundException:/var/lib/cassandra/data/system/schema_columns/system-schema_columns-tmp-ic-81-Index.db(权限被拒绝)         在java.io.RandomAccessFile.open(本机方法)         在java.io.RandomAccessFile。(RandomAccessFile.java:241)         在org.apache.cassandra.io.util.SequentialWriter。(SequentialWriter.java:69)         ......还有12个  INFO 12:33:01,786写Memtable-schema_columnfamilies @ 1938605158(22187/22187 serialized / live bytes,369 ops) 错误12:33:01,789线程中的异常线程[FlushWriter:4,5,main] java.lang.RuntimeException:java.io.FileNotFoundException:/var/lib/cassandra/data/system/schema_columnfamilies/system-schema_columnfamilies-tmp-ic-131-Index.db(Permission denied)         在org.apache.cassandra.io.util.SequentialWriter。(SequentialWriter.java:73)         在org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:108)         在org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:103)         在org.apache.cassandra.io.sstable.SSTableWriter $ IndexWriter。(SSTableWriter.java:442)         在org.apache.cassandra.io.sstable.SSTableWriter。(SSTableWriter.java:92)         在org.apache.cassandra.db.Memtable $ FlushRunnable.createFlushWriter(Memtable.java:517)         在org.apache.cassandra.db.Memtable $ FlushRunnable.writeSortedContents(Memtable.java:465)         at org.apache.cassandra.db.Memtable $ FlushRunnable.runWith(Memtable.java:448)         在org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAwareRunnable.java:48)         在org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)         在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)         at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)         在java.lang.Thread.run(Thread.java:745) 引起:java.io.FileNotFoundException:/var/lib/cassandra/data/system/schema_columnfamilies/system-schema_columnfamilies-tmp-ic-131-Index.db(权限被拒绝)         在java.io.RandomAccessFile.open(本机方法)         在java.io.RandomAccessFile。(RandomAccessFile.java:241)         在org.apache.cassandra.io.util.SequentialWriter。(SequentialWriter.java:69)         ......还有12个

1 个答案:

答案 0 :(得分:3)

我遇到了同样的问题,并通过使用以下命令更改某些文件夹的所有权来解决它:

sudo chown -R cassandra:cassandra /var/lib/cassandra/

这样做后cqlsh为我工作。