Giter Club home page Giter Club logo

mongo-deep-mapreduce's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mongo-deep-mapreduce's Issues

OutOfMemory Errors When Reading Data

Hi there,

Great library. Really useful.

However, I run into OOM errors when reading data from my raw mongo dump. Some facts:

  1. My collection creates 30 extents, and hence, 30 mappers.
  2. My whole database is around 200G and this collection is a significant chunk of that data.
  3. I am running on a single node hadoop cluster which can run up to 2 tasks in parallel
  4. I have set mapred.child.java.opts=-Xmx2G
  5. The error occurs when reading records. See [1]

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.