Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1264

OutOfMemoryError while running sort example

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.3
    • None
    • None
    • None
    • Java 1.6.0_01, EC2 cluster with one slave (Linux domU-12-31-33-00-02-5A 2.6.16-xenU #1 SMP Thu Nov 30 13:48:50 SAST 2006 i686 athlon i386 GNU/Linux)

    Description

      The problem is reproducible, and I get this stacktrace:

      java.io.IOException: Job failed!
      at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:604)
      at org.apache.hadoop.examples.Sort.main(Sort.java:115)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71)
      at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:143)
      at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:40)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:155)

      java.lang.OutOfMemoryError: Java heap space
      at java.util.Arrays.copyOf(Arrays.java:2786)
      at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
      at java.io.DataOutputStream.write(DataOutputStream.java:90)
      at org.apache.hadoop.io.BytesWritable.write(BytesWritable.java:138)
      at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:318)
      at org.apache.hadoop.mapred.lib.IdentityMapper.map(IdentityMapper.java:39)
      at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:48)
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:175)
      at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:1445)

      Attachments

        Activity

          People

            Unassigned Unassigned
            tomwhite Thomas White
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: