patternMinor
What is a good way to copy data from one Cassandra ColumnFamily to another on the same Keyspace (like SQL's INSERT INTO)?
Viewed 0 times
sametheinsertwhatsqlintokeyspacewaylikecolumnfamily
Problem
Trying to find a way to easily transfer all the rows from a Cassandra ColumnFamily/Table to another.
The
A specific example of what I mean would be the
What is a good way to accomplish this?
Thanks very much!
The
COPY command, as I understand, is a good option. However, as it dumps all the data to .csv on disk and then loads it back, I can't help but wonder if there is a better way to do it in-engine.A specific example of what I mean would be the
INSERT * FROM my_table INTO my_other_table available in many SQL databases. Of course, I realize that Cassandra is NoSQL and therefore does not to work the same way - but it seems like something which might be available.What is a good way to accomplish this?
Thanks very much!
Solution
Did you take a look at
sstableloader?- https://web.archive.org/web/20150215110737/http://www.datastax.com/documentation/cassandra/2.0/cassandra/tools/toolsBulkloader_t.html
- https://docs.datastax.com/en/dse/6.0/dse-admin/datastax_enterprise/tools/toolsSStables/toolsBulkloader.html
Context
StackExchange Database Administrators Q#58901, answer score: 2
Revisions (0)
No revisions yet.