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

KFS::getBlockLocations() fails with files having multiple blocks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.18.0
    • 0.19.1
    • fs
    • None
    • Hadoop on KFS

    • Reviewed

    Description

      getBlockLocations() on KFS fail with the following stack trace for large files (with multiple blocks).

       java.lang.IllegalArgumentException: Offset 67108864 is outside of file
       (0..67108863)
              at
       org.apache.hadoop.mapred.FileInputFormat.getBlockIndex(FileInputFormat.java:336)
              at
       org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:248)
              at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:742)
              at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1026)
              at org.apache.hadoop.examples.WordCount.run(WordCount.java:149)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
              at org.apache.hadoop.examples.WordCount.main(WordCount.java:155)
              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:68)
              at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:141)
              at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:54)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

      blkStart was not updated properly.

      Attachments

        1. patch.4697
          0.8 kB
          Sriram Rao

        Activity

          People

            sriramsrao Sriram Rao
            lohit Lohit Vijaya Renu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: