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!

Reply via email to