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

Using a har file as input for the Sort example fails

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 0.18.0
    • None
    • None
    • Reviewed

    Description

      Using a har file as input for the Sort example fails

      I ran the randomwriter example and then ran the archive on the output of randomwriter to create a new HAR file. I specified this har file as the input for sort program and it failed.

      STEP1: bin/hadoop jar hadoop-0.18.0-dev-examples.jar randomwriter input
      STEP2: bin/hadoop archive -archiveName foo.har /user/jothipn/input /user/jothipn
      STEP3: bin/hadoop jar hadoop-0.18.0-dev-examples.jar sort har:///user/jothipn/foo.har/user/jothipn/input output

      java.lang.ArrayIndexOutOfBoundsException: 17
      at org.apache.hadoop.mapred.FileInputFormat.getBlockIndex(FileInputFormat.java:334)
      at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:248)
      at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:686)
      at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:966)
      at org.apache.hadoop.examples.Sort.run(Sort.java:147)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
      at org.apache.hadoop.examples.Sort.main(Sort.java:158)
      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:585)
      at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
      at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
      at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:53)
      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:585)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:155)

      Attachments

        1. hadoop-3580_1.patch
          2 kB
          Mahadev Konar

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mahadev Mahadev Konar
            jothipn Jothi Padmanabhan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment