Export large amount of data from Cassandra to CSV

只愿长相守 提交于 2019-11-30 11:03:24

Because using COPY will be quite challenging when you are trying to export a table with millions of rows from Cassandra, So what I have done is to create simple tool to get the data chunk by chunk (paginated) from cassandra table and export it to CSV.

Look at my example solution using java library from datastax.

I also gave up after trying different solutions specially when the data is clustered and is huge.
I used Spark job to export all data to a file (e.g. S3) and it worked well.

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