cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 严超 <yanchao...@gmail.com>
Subject [Cassandra][SStableLoader Out of Heap Memory]
Date Wed, 10 Dec 2014 05:56:35 GMT
Hi, Everyone:
        I'm importing a CSV file into Cassandra using SStableLoader. And
I'm following the example here:
        https://github.com/yukim/cassandra-bulkload-example/
        When i try to run the sstableloader, it fails with OOM. I also
changed the sstableloader.sh script (that runs the java -cp ...BulkLoader )
to have more mem using -Xms and -Xmx args but still i keep hitting the same
issue.
Any hints/directions would be really helpful .

*Stack Trace : *
/usr/bin/sstableloader -v -d <internal-ip> /tmp/nitin_test/nitin_test_load/

Established connection to initial hosts
Opening sstables and calculating sections to stream
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.ArrayList.<init>(ArrayList.java:144)
at org.apache.cassandra.db.RowIndexEntry$Serializer.
deserialize(RowIndexEntry.java:120)
at org.apache.cassandra.io.sstable.SSTableReader.buildSummary(SSTableReader.
java:457)
at org.apache.cassandra.io.sstable.SSTableReader.openForBatch(SSTableReader.
java:170)
at org.apache.cassandra.io.sstable.SSTableLoader$1.
accept(SSTableLoader.java:112)
at java.io.File.list(File.java:1155)
at org.apache.cassandra.io.sstable.SSTableLoader.openSSTables(SSTableLoader.
java:73)
at org.apache.cassandra.io.sstable.SSTableLoader.stream(
SSTableLoader.java:155)
at org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:66)


*Best Regards!*


*Chao Yan--------------**My twitter:Andy Yan @yanchao727
<https://twitter.com/yanchao727>*


*My Weibo:http://weibo.com/herewearenow
<http://weibo.com/herewearenow>--------------*

Mime
View raw message