You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Anuj Wadehra <an...@yahoo.co.in> on 2016/02/01 20:14:20 UTC

Moving Away from Compact Storage

Hi
Whats the fastest and reliable way to migrate data from a Compact Storage table to Non-Compact storage table?
I was not able to find any command for dropping the compact storage directive..so I think migrating data is the only way...any suggestions?
ThanksAnuj


Re: Moving Away from Compact Storage

Posted by DuyHai Doan <do...@gmail.com>.
Use Apache Spark to parallelize the data migration. Look at this piece of
code
https://github.com/doanduyhai/Cassandra-Spark-Demo/blob/master/src/main/scala/usecases/MigrateAlbumsData.scala#L58-L60

If your source and target tables have the SAME structure (except for the
COMPACT STORAGE clause), migration with Spark is a 2 lines of code

On Mon, Feb 1, 2016 at 8:14 PM, Anuj Wadehra <an...@yahoo.co.in> wrote:

> Hi
>
> Whats the fastest and reliable way to migrate data from a Compact Storage
> table to Non-Compact storage table?
>
> I was not able to find any command for dropping the compact storage
> directive..so I think migrating data is the only way...any suggestions?
>
> Thanks
> Anuj
>
>