如何降级Cassandra 3.0.0 - > 2.x? [英] How to downgrade Cassandra 3.0.0 -> 2.x?
问题描述
I recently found out that Cassandra 3.0.0 and PrestoDB don't play well together.
我有很多数据加载到Cassandra 3.0和我的应用程序中。我最近发现Cassandra 3.0.0和PrestoDB不能一起播放。不想重建整个事情。有一个安全的方法降级到2.x暂时,直到Presto更新,那么我可以回到3.0?
I have a lot of data loaded into Cassandra 3.0 and I wouldn't like to rebuild the whole thing. Is there a safe way to downgrade to 2.x temporarily until Presto is updated, so then I can come back to 3.0?
我知道降级是官方支持,但是,我想知道是否更有经验的SO Cassandra用户可以在这里指向正确的方向。我认为答案将是不要尝试,但谁知道,也许有一种方式。提前感谢。
I know downgrading is not officially supported, but I'm wondering whether more experienced S.O. Cassandra users could point me in the right direction here. I assume the answer will be "don't try it", but who knows, maybe there's a way. Thanks in advance.
更新2016-11-05 :使用PrestoDB的0.147及更高版本,此问题已解决。最后,我不需要降级Cassandra,以使用PrestoDB。感谢您的回覆。
Update 2016-11-05 : Using version 0.147 and newer of PrestoDB and this issue has been solved. In the end I did not need to downgrade Cassandra in order to use PrestoDB. Thanks for your replies.
推荐答案
如果您开始使用3.0,我唯一能想到的是导出所有数据然后重新导入。存储格式已大幅更改,2.x无法读取3.0表。
If you've started with 3.0, the only way I can think of is to export all your data then reimport it. The storage format has massively changed and 2.x can't read the 3.0 tables.
不幸的是,sstable2json在3.0版本中已删除,因此您可能需要手动导出,然后导入到以前的版本。
Unfortunately sstable2json was removed in 3.0, so you'll probably need to export it all manually then import into a previous version.
这篇关于如何降级Cassandra 3.0.0 - > 2.x?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!