0

I need to copy the first 100k records from "prod" keyspace to "test" keyspace in Cassandra, I tried to use dsbulk but it export the whole table data and it is taking longer time.

Is there any solution to fetch 100k records from one table and copy them into another table in Cassandra?

azhagan
  • 21
  • 1
  • 4

1 Answers1

0

Download/ install dsbulk dsbulk package and update the variable $PATH value with dsbulk bin folder and then update the ./.bashrc file.

Then use the below command to unload the data from the table to csv file

dsbulk unload -url /tmp/export/ -query "SELECT * from prod.user LIMIT 100000"

azhagan
  • 21
  • 1
  • 4