卡桑德拉迁移
我在服务器 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为什么不升级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.
谢谢 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.