tbarbugli / cassandra_snapshotter

A tool to backup cassandra nodes using snapshots and incremental backups on S3
Other
222 stars 122 forks source link

please generate keyspaces and tables when restoring #18

Closed natict closed 10 years ago

natict commented 10 years ago

When restoring a keyspace, it doesn't get created before loading the sstables, which generates the following error:

INFO:root:invoking: sstableloader --nodes localhost -v MY_KEYSPACE/MY_TABLE Could not retrieve endpoint ranges: InvalidRequestException(why:No such keyspace: MY_KEYSPACE) Run with --debug to get full stack trace or --help to get help.

Even after creating the keyspace, the tables don't get created: ... Skipping file IP_MY_KEYSPACE-MY_TABLE-jb-42-Data.db: column family MY_KEYSPACE.MY_TABLE doesn't exist ...

tbarbugli commented 10 years ago

Hi Netanel, the restore step is not yet feature complete, some work was done few months ago but it definitely needs some help. Afaik no one is working on that feature at this moment; if you feel like give it a try or if you have already some patches I will be more than happy to merge them in the tool or give you some support.

Cheers, Tommaso

2014-05-18 14:45 GMT+02:00 Netanel Cohen-Tzemach notifications@github.com:

When restoring a keyspace, it doesn't get created before loading the sstables, which generates the following error:

INFO:root:invoking: sstableloader --nodes localhost -v MY_KEYSPACE/MY_TABLE Could not retrieve endpoint ranges: InvalidRequestException(why:No such keyspace: MY_KEYSPACE) Run with --debug to get full stack trace or --help to get help.

Even after creating the keyspace, the tables don't get created: ... Skipping file IP_MY_KEYSPACE-MY_TABLE-jb-42-Data.db: column family MY_KEYSPACE.MY_TABLE doesn't exist ...

— Reply to this email directly or view it on GitHubhttps://github.com/tbarbugli/cassandra_snapshotter/issues/18 .