Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-3013

Excludes Spark assembly jar when building MapReduce job jar.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None
    • Rank:
      1|hzyw2f:

      Description

      When spark-assembly.jar is included, MapReduceRuntimeService throws the following OOM:

      java.lang.OutOfMemoryError: Java heap space
              at java.util.Arrays.copyOf(Arrays.java:2271) ~[na:1.7.0_75]
              at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) ~[na:1.7.0_75]
              at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) ~[na:1.7.0_75]
              at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140) ~[na:1.7.0_75]
              at java.util.zip.CheckedOutputStream.write(CheckedOutputStream.java:73) ~[na:1.7.0_75]
              at com.google.common.io.ByteStreams.copy(ByteStreams.java:198) ~[com.google.guava.guava-13.0.1.jar:na]
              at org.apache.twill.internal.ApplicationBundler.saveEntry(ApplicationBundler.java:283) ~[org.apache.twill.twill-core-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
              at org.apache.twill.internal.ApplicationBundler.putEntry(ApplicationBundler.java:219) ~[org.apache.twill.twill-core-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
              at org.apache.twill.internal.ApplicationBundler.access$200(ApplicationBundler.java:57) ~[org.apache.twill.twill-core-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
              at org.apache.twill.internal.ApplicationBundler$3.accept(ApplicationBundler.java:208) ~[org.apache.twill.twill-core-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
              at org.apache.twill.internal.utils.Dependencies.findClassDependencies(Dependencies.java:80) ~[org.apache.twill.twill-core-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
              at org.apache.twill.internal.ApplicationBundler.findDependencies(ApplicationBundler.java:198) ~[org.apache.twill.twill-core-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
              at org.apache.twill.internal.ApplicationBundler.createBundle(ApplicationBundler.java:155) ~[org.apache.twill.twill-core-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
              at org.apache.twill.internal.ApplicationBundler.createBundle(ApplicationBundler.java:126) ~[org.apache.twill.twill-core-0.6.0-incubating-SNAPSHOT.jar:0.6.0-incubating-SNAPSHOT]
              at co.cask.cdap.internal.app.runtime.batch.MapReduceRuntimeService.buildJobJar(MapReduceRuntimeService.java:730) ~[co.cask.cdap.cdap-app-fabric-3.1.0-SNAPSHOT.jar:na]
              at co.cask.cdap.internal.app.runtime.batch.MapReduceRuntimeService.startUp(MapReduceRuntimeService.java:238) ~[co.cask.cdap.cdap-app-fabric-3.1.0-SNAPSHOT.jar:na]
              at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:47) [com.google.guava.guava-13.0.1.jar:na]
              at co.cask.cdap.internal.app.runtime.batch.MapReduceRuntimeService$1$1.run(MapReduceRuntimeService.java:371) [co.cask.cdap.cdap-app-fabric-3.1.0-SNAPSHOT.jar:na]
              at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75]
      

        Attachments

          Activity

            People

            • Assignee:
              terence Terence Yim
              Reporter:
              terence Terence Yim
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: