选择性地将cassandra百万行数据复制到外部文件 [英] Selective copy cassandra million rows data to external file

查看:115
本文介绍了选择性地将cassandra百万行数据复制到外部文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将cassandra表数据复制到外部.dat文件。对于少量的行,它可以正常工作。 | /home.../bin/cqlsh> output.dat

但是当我对数百万行执行相同操作时,这会花费时间。说,5,000,000行需要4分钟。



我必须对3,00,00,000行的增量数据进行选择性复制。任何帮助将不胜感激。

解决方案

尝试使用COPY命令将cassandra表数据复制到某个外部文件。


I have tried copying cassandra table data to an external .dat file. For few rows it works fine.

echo "select * from <schema>.events limit 5000 ;" | /home.../bin/cqlsh > output.dat

But when I do the same for some millions of rows, it is taking time. Say, 5,00,000 rows takes 4 mins.

I have to do selective copy of data around 3,00,00,000 rows on incremental. Any help would be much appreciated.

解决方案

Try to use COPY command to copy cassandra table data to some external file.

这篇关于选择性地将cassandra百万行数据复制到外部文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆