Selective copy cassandra million rows data to external file

蹲街弑〆低调 提交于 2019-12-12 02:58:56

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/35332538/selective-copy-cassandra-million-rows-data-to-external-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!