Thanks Michael, I've solved this issue. -Sukaant Chaudhary <http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>
On Wed, Nov 4, 2015 at 5:30 AM, Michael Hunger < [email protected]> wrote: > You have to share your code. It looks as if your dao is writing to a > stream which is actually a byte-array in memory. Which cannot grow anymore > at some point. > > > Am 03.11.2015 um 15:56 schrieb Sukaant Chaudhary < > [email protected]>: > > Hi, > I'm using BatchInsert for inserting 30 million records, for 10 million it > is working fine but when I'm trying to insert 20 million records. I'm > getting the following error. > > Exception in thread "main" java.lang.OutOfMemoryError: Requested array > size exceeds VM limit > at java.util.Arrays.copyOf(Arrays.java:2271) > at > java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) > at > java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) > at > java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140) > at java.io.OutputStream.write(OutputStream.java:75) > at > com.amat.hbase.dao.impl.ItemDimDAOImpl.getItemDetail(ItemDimDAOImpl.java:49) > at > com.amat.transfer.ImpalaTransferStart.main(ImpalaTransferStart.java:16) > > Any help will be highly appreciated. > > -Sukaant Chaudhary > <image004.png> <http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479> > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
