Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4678

Running the Pentomino example with defaults throws java.lang.NegativeArraySizeException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.3-alpha, 0.23.6
    • examples
    • None
    • Reviewed

    Description

      HADOOP_HOME/hadoop-examples.jar pentomino <output_dir> will fail with the following error message:

      INFO util.NativeCodeLoader: Loaded the native-hadoop library 
      INFO mapred.FileInputFormat: Total input paths to process : 1 
      INFO mapred.JobClient: Running job: job_xxxxx
      INFO mapred.JobClient: map 0% reduce 0% 
      INFO mapred.JobClient: Task Id : attempt_xxxx, Status : FAILED 
      java.lang.NegativeArraySizeException 
      at org.apache.hadoop.examples.dancing.DistributedPentomino$PentMap.map(Di 
      stributedPentomino.java:95) 
      at org.apache.hadoop.examples.dancing.DistributedPentomino$PentMap.map(Di 
      stributedPentomino.java:51) 
      at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50) 
      at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:391) 
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:325) 
      at org.apache.hadoop.mapred.Child$4.run(Child.java:270) 
      at java.security.AccessController.doPrivileged(Native Method) 
      at javax.security.auth.Subject.doAs(Subject.java:396) 
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformat 
      ion.java:1177) 
      at org.apache.hadoop.mapred.Child.main(Child.java:264)
      

      Attachments

        1. MAPREDUCE-4678.patch
          2 kB
          Chris McConnell
        2. MAPREDUCE-4678.patch.txt
          2 kB
          Harsh J

        Issue Links

          Activity

            People

              ctm Chris McConnell
              ctm Chris McConnell
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: