Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore multiple node cluster : Error with table ***, found X directories #17

Open
blatinier opened this issue Sep 12, 2019 · 1 comment

Comments

@blatinier
Copy link

Hello,
I'm using cain to backup & restore a cassandra cluster on kubernetes and I have the following error when I restore my cassandra :

2019/09/12 14:54:01 Error with table my_table, found 2 directories

The 2 directories match with my two nodes. The tree of my cain generated in S3 backup looks like that:

bucket
-- default
-- -- Cassandra
-- -- -- keyspace_name
-- -- -- -- schema_id
-- -- -- -- -- tag_name
-- -- -- -- -- -- cassandra-0
-- -- -- -- -- -- -- my_table
-- -- -- -- -- -- cassandra-1
-- -- -- -- -- -- -- my_table

cassandra-0 and cassandra-1 are my pod names
The restore command I used:

./cain restore -n default -l name=cassandra -k keyspace_name --src=s3://bucket/default/Cassandra -t "tag_name" --schema schema_id

The full log:

2019/09/12 14:54:01 Getting current schema
2019/09/12 14:54:01 Found schema: schema_id
2019/09/12 14:54:01 Calculating paths. This may take a while...
2019/09/12 14:54:01 Error with table my_table, found 2 directories

I tried to play a lot with the --src the tag_name with no luck.
Is there something I am missing regarding the cassandra restore into a multi node cluster?

@blatinier
Copy link
Author

Solved here: maorfr#2
Not a cain problem, just unclear error message and/or not enough experience from me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant