Import Export Cassandra keyspaces
I have study purpose Cassandra on Windows 7 (3 keyspaces) and want to copy it on new Cassandra cluster (Linux) 1) Import keyspaces, just structures. cqlsh -e "DESCRIBE MTS_BARS" > C:\cassdump\mts_bars.cql cqlsh -e "DESCRIBE MTS_META" > C:\cassdump\mts_meta.cql cqlsh -e "DESCRIBE MTS_SRC" > C:\cassdump\mts_src.cql There are some files that can be opened with notepad and contains SQL like queries to CREATE KEYSPACE, CREATE TABLE. 2) Export data with COPY TO ( simple-data-importing-and-exporting ) Connect to cqlsh and execute commands: COPY MTS_SRC.TICKS TO 'C:\cassdump\mts_src_ticks.cql' WITH HEADER=FALSE; COPY MTS_BARS.BARS TO 'C:\cassdump\mts_bars_bars.cql' WITH HEADER=FALSE; COPY MTS_BARS.bars_future TO 'C:\cassdump\mts_bars_bars_future.cql' WITH HEADER=FALSE; COPY MTS_BARS.bars_test TO 'C:\cassdump\mts_bars_test.cql' WITH HEADER=FALSE; COPY MTS_BARS.LASTBARS TO 'C:\cassdump\mts_bars_lastbars.c...