incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Teo <steven.te...@gmail.com>
Subject Re: json2sstable
Date Wed, 13 Apr 2011 05:15:39 GMT
the data is a custom json, seems like i may have got the structure wrong. 
how should the import json be like?
 
Steven Teo

On 13-Apr-2011, at 10:43 AM, aaron morton wrote:

> Reading the code looks like it could not find a subColumns item for the row in the json
file. 
> 
> The target CF is a super CF, is the data from a super CF ? 
> 
> Aaron
> 
> On 13 Apr 2011, at 07:24, Steven Teo wrote:
> 
>> Hi,
>> 
>> I am trying to run json2sstable with the following command but am receiving the below
error.
>> 	json2sstable -K testks -c testcf output.json /var/lib/cassandra/data/testks/testcf-f-1-Data.db

>> 
>> Importing 321 keys...
>> java.lang.NullPointerException
>> 	at org.apache.cassandra.tools.SSTableImport.addColumnsToCF(SSTableImport.java:136)
>> 	at org.apache.cassandra.tools.SSTableImport.addToSuperCF(SSTableImport.java:173)
>> 	at org.apache.cassandra.tools.SSTableImport.importUnsorted(SSTableImport.java:228)
>> 	at org.apache.cassandra.tools.SSTableImport.importJson(SSTableImport.java:197)
>> 	at org.apache.cassandra.tools.SSTableImport.main(SSTableImport.java:421)
>> ERROR: null
>> 
>> anything i did wrongly here?
>> 
>> Thanks!
> 


Mime
View raw message