amazon s3 - Cassandra DSE, restore from S3 timeouts -
i'm trying test s3 backup/restore functionality. did:
- installed dse +opscenter on amazon
- scheduled hourly backup of keyspaces (60 mb total size). got 10 backups in morning.
- terminate instances , create new one
- try data back. no luck. opscenter can't connect s3 bucket
it takes >10 min now...
what do wrong?
upd:
finally, got response:
i believe may opsc-5915 (sorry no public bug tracker) fixed in upcoming 5.2.0 release.
the summary api calls still work expected ui not pushing destination information api endpoint correctly.
you can confirm error experiencing thusly:
1) goto /etc/opscenter/clusters/<cluster_name>.conf (or similar location depending on if you've done tarball install/etc) 2) find destination id matches bucket, it'll b699738d9bd8409c82e664b543f24030 3) confirm clustername in opsc urls, it'll localhost:8888/my_cluster 4) manually hit api retrieve backup list curl localhost:8888/<clustername>/backups?amount=6\&last_seen=\&list_all=1\&destination=<destination id> it'll curl localhost:8888/dse/backups?amount=6\&last_seen=\&list_all=1\&destination=b699738d9bd8409c82e664b543f24030 5) should json, confirm backup listed {"opscenter_adhoc_2014-12-17-20-22-57-utc": {"keyspaces": {"opscenter":...
if see backup in json, opsc sees backup , indeed opsc-5915, that's @ least confirmed.
if case, can work around manually hitting restore api (this admittedly bit more involved).
http://docs.datastax.com/en/opscenter/5.1/api/docs/backups.html#backups
it'll bit this:
backup='opscenter_4a269167-96c1-40c7-84b7-b070c6bcd0cd_2012-06-07-18-00-00-utc' curl -x post http://192.168.1.1:8888/test_cluster/backups/restore/$backup -d '{ "destination": "fe85800f3f4043a88fbe76fc45b22b19", "keyspaces": { "keyspace1": { "column-families: ["users", "dates"], "truncate": true }, "opscenter": { "truncate": false } }, }'
Comments
Post a Comment