选择性复制cassandra万行数据到外部文件

时间:2016-02-11 06:45:10

标签: cassandra copy

我尝试将cassandra表数据复制到外部.dat文件。几行就可以了。

http://query.yahooapis.com/v1/public/yql?q=select+*+from+geo.placefinder+where+text+%3D+%2751.5073509%2C+-0.12775829999998223%27+and+gflags%3D%27R%27+&format=json

但是当我为数百万行做同样的事情时,它需要时间。比如,5,00,000行需要4分钟。

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

1 个答案:

答案 0 :(得分:1)

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