卡桑德拉迁移

发布于 2024-12-17 17:00:33 字数 152 浏览 4 评论 0原文

我在服务器 1 上运行了带有数据的 Cassandra 0.8.0,并在服务器 2 上全新安装了 Cassandra 1.0.3。

是否可以仅将一些文件从服务器 1 复制到服务器 2?或者我必须编写自己的导入/导出代码吗?

两台服务器都可以关闭、重新启动等。

I have Cassandra 0.8.0 running with data on server 1, and a clean install of Cassandra 1.0.3 on server 2.

Is it possible to just copy some files from server 1 to server 2? Or do i have to write my own import/export code?

Both servers can be taken down, restarted, etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我很OK 2024-12-24 17:00:33

为什么不升级server1?此处升级详细信息(无论哪种方式,请先阅读此内容):
http://svn.apache.org/viewvc /cassandra/branches/cassandra-1.0/NEWS.txt?view=markup

但如果您确实想更换机器,请按照此处详细介绍的“nodetool snapshot”过程进行操作:
http://wiki.apache.org/cassandra/Operations#Backing_up_data

重新创建在新节点上创建 schema,然后将快照添加到数据目录(如上所述),重新启动 cassandra,然后发出 Nodetool Scrub。

Why would you not upgrade server1? Upgrade details here (either way read this first):
http://svn.apache.org/viewvc/cassandra/branches/cassandra-1.0/NEWS.txt?view=markup

But if you do want to change machines, follow the procedures for 'nodetool snapshot' as detailed here:
http://wiki.apache.org/cassandra/Operations#Backing_up_data

Re-create the schema on the new node, then add the snapshots to the data directory (as described above), restart cassandra then issue a nodetool scrub.

撩动你心 2024-12-24 17:00:33

谢谢 zznate 它与硬件有关。

这里有一些我发现有用的链接:

http://jonathanhui.com/cassandra-数据维护备份和系统恢复
http://wiki.apache.org/cassandra/StorageConfiguration
http://www.memonic.com/user/pneff/folder/database /id/1bZvk

如果迁移后看起来没有任何反应,请确保使用 CassandraCli 在新节点上创建列族。

Thanks zznate it had to do with hardware.

Here some links i found useful:

http://jonathanhui.com/cassandra-data-maintenance-backup-and-system-recovery
http://wiki.apache.org/cassandra/StorageConfiguration
http://www.memonic.com/user/pneff/folder/database/id/1bZvk

If it looks like nothing happened after migrating make sure you create the column family's on the new node using CassandraCli.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文