我在所有节点上的完全空白群集上收到以下异常。那里绝对没有。没有理由我可以聚集。
INFO [FlushWriter:5] 2013-07-18 03:20:05,250 Memtable.java (line 495) Completed flushing /media/ephemeral0/cassandra/data/system/peers/system-peers-ic-7-Data.db (122 bytes) for commitlog position ReplayPosition(segmentId=1372450799758, position=452016)
ERROR [CompactionExecutor:174] 2013-07-18 05:19:58,505 CassandraDaemon.java (line 175) Exception in thread Thread[CompactionExecutor:174,1,main]
FSWriteError in /var/lib/cassandra/saved_caches
at org.apache.cassandra.io.util.FileUtils.createTempFile(FileUtils.java:92)
at org.apache.cassandra.cache.AutoSavingCache$Writer.tempCacheFile(AutoSavingCache.java:295)
at org.apache.cassandra.cache.AutoSavingCache$Writer.saveCache(AutoSavingCache.java:254)
at org.apache.cassandra.db.compaction.CompactionManager$10.run(CompactionManager.java:838)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1705)
at java.io.File.createTempFile0(File.java:1726)
at java.io.File.createTempFile(File.java:1803)
at org.apache.cassandra.io.util.FileUtils.createTempFile(FileUtils.java:88)
... 9 more
所以,现在当我在节点上看到nodetool info
时,我发现八卦和节俭都已关闭。
Token : (invoke with -T/--tokens to see all 256 tokens)
ID : 88016797-cd3e-44b6-8086-2dc3298760fb
Gossip active : false
Thrift active : false
Load : 96.42 KB
Generation No : 0
Uptime (seconds) : 1738289
Heap Memory (MB) : 1180.89 / 4016.00
Data Center : us-west
Rack : 1b
Exceptions : 120
Key Cache : size 2800 (bytes), capacity 104857600 (bytes), 340 hits, 365 requests, NaN recent hit rate, 14400 save period in seconds
Row Cache : size 0 (bytes), capacity 0 (bytes), 0 hits, 0 requests, NaN recent hit rate, 0 save period in seconds
我可以在没有任何nodetool问题的情况下重新启动它们。任何线索?
答案 0 :(得分:3)
“许可被拒绝”是你的吸烟枪。看起来Cassandra无权写入您配置的数据目录。