문제

I try to restore a Cassandra table from snapshot , but when i try to see the result the query give me a rpc_timeout so i tried to see the log files

java.lang.RuntimeException: java.lang.RuntimeException: java.io.FileNotFoundException: /var/lib/cassandra/data/key_space/table/table-ib-2-Data.db (Permission denied)

how i get the snapshot:

$ nodetool -h localhost -p 7199 snapshot

how i restore the snapshot:

$ sudo service cassandra stop

in this level i cleared all files from commitlog

$ cp –R /..../snapshot/..../1379314573738/. /var/lib/cassandra/data/..../table/

$ sudo service cassandra start

Why this happened and How can i resolve this?

thanks in advance,

도움이 되었습니까?

해결책

It looks like Cassandra doesn't have permission to read the restored sstable. Check the file permissions and ownership.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top