datastax-enterprise
datastax-startup
We are using DataStax DSE Cluster.
We are trying to migrate a table to another table with same definition as the 1st table but with a secondary index
It has about 1.7M rows
1) We first user Cassandra COPY command from cqlsh. It is taking a long time > 1 hr. Timeout, didn't work 2) We then write a program to export the 1st table to CSV file. We break this CSV file into separate CSV files, and try to load it against the 2nd table.
The insert takes sometime, and it fails
3) We are looking into http://www.datastax.com/dev/blog/using-the-cassandra-bulk-loader-updated
Since we have CSV file, is this the right approach?
And we are using this lib https://github.com/yukim/cassandra-bulkload-example to generate the SSTABLE.
Is it the right way to handle this?