Cassandra从一个桌子复制n行,然后将它们插入另一个表格
我需要将第一个100K记录从“ prod”键空间复制到卡桑德拉(Cassandra)的“测试”键,我尝试使用dsbulk,但它导出了整个表数据,并且需要更长的时间。
是否有任何解决方案可以从一个表中获取100k记录并将其复制到Cassandra的另一个表中?
I need to copy the first 100k records from "prod" keyspace to "test" keyspace in Cassandra, I tried to use dsbulk but it export the whole table data and it is taking longer time.
Is there any solution to fetch 100k records from one table and copy them into another table in Cassandra?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下载/install
然后使用以下命令将数据从表卸载到CSV文件
dsbulk unload -url/tmp/export/-query/Query“从prod.user limit限制100000”
>Download/ install dsbulk dsbulk package and update the variable $PATH value with dsbulk bin folder and then update the ./.bashrc file.
Then use the below command to unload the data from the table to csv file
dsbulk unload -url /tmp/export/ -query "SELECT * from prod.user LIMIT 100000"