I need to copy data from keyspace database1 to keyspace database18.
It's not an option to use csql COPY command (at least I don't know how to make such script), because I have 103 different tables with all imaginable columns in it.
Keyspaces already created, schema applied.
I already tried to make a snapshot and then copy (mv)
1. mv /data/cassandra/data/database1/tables/snapshot/copy/* /data/cassandra/data/database18/tables/*
- nodetool refresh database18 tablesOneByOne
- nodetool repair database18
I also tried to reboot one of my servers:
nodetool disablegossip
nodetool drain
reboot
There are no data in new keyspace tables.
When I enter csql use database18; select * from table1;
I receive an empty table "(0 rows)"
Cassandra version is: [cqlsh 5.0.1 | Cassandra 2.1.17.1439
Maybe there something I missing or different way exists to achieve this?
Any help or suggestions are welcome, thank you!!!