see conf/cassandra-env.sh to increase the JVM Heap Background reading http://wiki.apache.org/cassandra/MemtableThresholds
There is a fix in 0.7.5 that would help you right now :) If you cannot increase the JVM Heap reduce the in_memory_compaction_limit in conf/cassandra/yaml Aaron On 13 Apr 2011, at 21:53, Steven Teo wrote: > managed to resolve the earlier error > but is getting this exception now, any way to increase the heap space, or is > a non-related issue? > > Exception in thread "main" java.lang.OutOfMemoryError: Java heap space > at > org.apache.cassandra.io.util.BufferedRandomAccessFile.<init>(BufferedRandomAccessFile.java:123) > at > org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:78) > at > org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:65) > at > org.apache.cassandra.tools.SSTableImport.importUnsorted(SSTableImport.java:211) > at > org.apache.cassandra.tools.SSTableImport.importJson(SSTableImport.java:197) > at org.apache.cassandra.tools.SSTableImport.main(SSTableImport.java:421) > > thanks! > Steven Teo > > On 13-Apr-2011, at 1:15 PM, Steven Teo wrote: > >> 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! >>> >> >