Export large amount of data from Cassandra to CSV

后端 未结 3 771
陌清茗
陌清茗 2021-02-05 05:46

I\'m using Cassandra 2.0.9 for store quite big amounts of data, let\'s say 100Gb, in one column family. I would like to export this data to CSV in fast way. I tried:

    <
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-05 06:05

    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.

提交回复
热议问题