groupon / mongo-deep-mapreduce Goto Github PK
View Code? Open in Web Editor NEWUse Hadoop MapReduce directly on Mongo data
License: BSD 3-Clause "New" or "Revised" License
Use Hadoop MapReduce directly on Mongo data
License: BSD 3-Clause "New" or "Revised" License
Hi there,
Great library. Really useful.
However, I run into OOM errors when reading data from my raw mongo dump. Some facts:
Have you run this library with datasets of that size? Interestingly, if I run the code with LocalJobRunner, it succeeds implying that when the mappers are run serially, there is no problem. It appears that even though we are running 2 tasks at a time, the mappers are created up front and they load in a lot of data which causes the OOM error.
Any pointers?
Adil
[1] Stacktrace:
2013-09-19 20:35:06,031 FATAL org.apache.hadoop.mapred.Child: Error running child : java.lang.OutOfMemoryError: Java heap space
at com.groupon.mapreduce.mongo.in.Extent.getBuffer(Extent.java:137)
at com.groupon.mapreduce.mongo.in.Record.(Record.java:63)
at com.groupon.mapreduce.mongo.in.Extent.getFirstRecord(Extent.java:124)
at com.groupon.mapreduce.mongo.in.Extent$1.(Extent.java:158)
at com.groupon.mapreduce.mongo.in.Extent.iterator(Extent.java:157)
at com.groupon.mapreduce.mongo.in.MongoRecordReader.initialize(MongoRecordReader.java:59)
at com.groupon.mapreduce.mongo.in.MongoInputFormat.createRecordReader(MongoInputFormat.java:166)
at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.(MapTask.java:488)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:731)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:364)
at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.