cassandra_snapshotter
cassandra_snapshotter copied to clipboard
snapshots fail with permission denied.
The first time I run the tool, it works well, the subsequent times it gives an error:
[cassandrahost] out: Traceback (most recent call last):
[cassandrahost] out: File "/usr/local/bin/cassandra-snapshotter-agent", line 9, in
Are these file in the "backups" directory above, something which is leftover from before? There are a bunch of such files and it keep failing on them. The permissions on these files are:
ls -l /mnt/cassandra/data/system/schema_triggers-0359bc7171233ee19a4ab9dfb11fc125/backups/la-4-big-Filter.db -rw-r--r-- 1 cassandra cassandra 16 Feb 7 15:00 /mnt/cassandra/data/system/schema_triggers-0359bc7171233ee19a4ab9dfb11fc125/backups/la-4-big-Filter.db
I am running the snapshotted from my mac which SSH's into the node, using the ubuntu user. Any suggestions why it is failing for me, is it the permissions on the file? If so why only I am hitting this issue?
the tool assumes that the user performing the backups (that connects via SSH) has access to the backup files. As an alternative you can tell the agent to use sudo (in that case the user needs to have sudo available and password prompt off) via the --use-sudo
option