Re: C* Table Changed and Data Migration with new primary key

2015-10-27 Thread qihuang.zheng
appen. I also try use : getLongOption, but this exception still happen. https://github.com/datastax/spark-cassandra-connector/blob/master/doc/5_saving.md at first I want to ask issue on spark-case-connector project, but there are no issues there, so I ask here. Tks, qihuang.zheng 原始邮件 发

Re: C* Table Changed and Data Migration with new primary key

2015-10-26 Thread qihuang.zheng
件 发件人:Jeff jirsajeff.ji...@crowdstrike.com 收件人:user@cassandra.apache.orgu...@cassandra.apache.org 发送时间:2015年10月22日(周四) 13:52 主题:Re: C* Table Changed and Data Migration with new primary key Because the data format has changed, you’ll need to read it out and write it back in again. This means usin

Re: C* Table Changed and Data Migration with new primary key

2015-10-22 Thread DuyHai Doan
; qihuang.zheng > > 原始邮件 > *发件人:* Jeff Jirsa > *收件人:* user@cassandra.apache.org > *发送时间:* 2015年10月22日(周四) 13:52 > *主题:* Re: C* Table Changed and Data Migration with new primary key > > Because the data format has changed, you’ll need to read it out and write > it back

Re: C* Table Changed and Data Migration with new primary key

2015-10-22 Thread Jack Krupansky
Consider the new 3.0 Materialized Views feature - you keep the existing table and create three MVs, each with a different a primary key. Cassandra will then populate the new MVs from the existing base table data. See: https://issues.apache.org/jira/browse/CASSANDRA-6477 -- Jack Krupansky On Wed,

Re: C* Table Changed and Data Migration with new primary key

2015-10-22 Thread qihuang.zheng
...@crowdstrike.com 收件人:user@cassandra.apache.orgu...@cassandra.apache.org 发送时间:2015年10月22日(周四) 13:52 主题:Re: C* Table Changed and Data Migration with new primary key Because the data format has changed, you’ll need to read it out and write it back in again. This means using either a driver (java

Re: C* Table Changed and Data Migration with new primary key

2015-10-21 Thread Jeff Jirsa
: "qihuang.zheng" Reply-To: "user@cassandra.apache.org" Date: Wednesday, October 21, 2015 at 6:18 PM To: user Subject: C* Table Changed and Data Migration with new primary key Hi All: We have a table defined only one partition key and some cluster key. CREATE TABLE test

C* Table Changed and Data Migration with new primary key

2015-10-21 Thread qihuang.zheng
Hi All: We have a table defined only one partition key and some cluster key. CREATE TABLE test1 ( attribute text, partner text, app text, "timestamp" bigint, event text, PRIMARY KEY ((attribute), partner, app, "timestamp") ) And now we want to split original test1 table to 3 t