首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cassandra,从S3超时恢复

Cassandra,从S3超时恢复
EN

Stack Overflow用户
提问于 2015-04-29 09:46:53
回答 1查看 462关注 0票数 0

我正在尝试测试S3的备份/恢复功能。我所做的:

  1. 在Amazon上安装了DSE +OpsCenter
  2. 计划每小时备份所有密钥空间(60 MB总大小)。早上有10次备份。
  3. 终止实例并创建新实例
  4. 把我的数据找回来。不走运。OpsCenter无法连接到我的S3桶

现在需要>10分钟.

我做错什么了?

UPD:

最后,得到回应:

EN

回答 1

Stack Overflow用户

发布于 2015-07-10 18:34:53

我相信这可能是OPSC-5915 (抱歉没有公共bug跟踪器),这是在即将发布的5.2.0版本中修复的。

总结是,API调用仍将按预期工作,但UI没有正确地将目标信息推送到API端点。

您可以确认这是您正在经历的错误:

代码语言:javascript
复制
1) goto /etc/opscenter/clusters/<cluster_name>.conf (or similar location depending on if you've done a tarball install/etc)
2) Find the destination ID that matches your bucket, it'll look something like b699738d9bd8409c82e664b543f24030
3) Confirm the clustername in your opsc URLs, it'll look something like localhost:8888/my_cluster
4) Manually hit the API to retrieve your backup list
curl localhost:8888/<clustername>/backups?amount=6\&last_seen=\&list_all=1\&destination=<destination ID>
It'll look like this
curl localhost:8888/dse/backups?amount=6\&last_seen=\&list_all=1\&destination=b699738d9bd8409c82e664b543f24030
5) You should get back a json, confirm that your backup is listed
{"opscenter_adhoc_2014-12-17-20-22-57-UTC": {"keyspaces": {"OpsCenter":...

如果您在JSON中看到您的备份,那么opsc将看到您的备份,这确实是OPSC-5915,所以这一点至少得到了确认。

如果这是您的情况,我们可以通过手动访问还原API来解决这个问题(诚然,这涉及到了更多的问题)。

http://docs.datastax.com/en/opscenter/5.1/api/docs/backups.html#backups

它看起来有点像这样:

代码语言:javascript
复制
  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
            }
          },
        }'
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29940055

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档