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

FileSystem should provide byte ranges for file locations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.17.0
    • fs
    • None
    • Incompatible change
    • New FileSystem API getFileBlockLocations to return the number of bytes in each block in a file via a single rpc to the namenode to speed up job planning. Deprecates getFileCacheHints.

    Description

      FileSystem's getFileCacheHints should be replaced with something more useful. I'd suggest replacing getFileCacheHints with a new method:

      BlockLocation[] getFileLocations(Path file, long offset, long range) throws IOException;
      

      and adding

      class BlockLocation implements Writable {
        String[] getHosts();
        long getOffset();
        long getLength();
      }
      

      Attachments

        1. HADOOP-2027-14.patch
          38 kB
          Lohit Vijaya Renu
        2. HADOOP-2559-13.patch
          38 kB
          Lohit Vijaya Renu
        3. HADOOP-2559-12.patch
          39 kB
          Lohit Vijaya Renu
        4. HADOOP-2559-11.patch
          37 kB
          Lohit Vijaya Renu
        5. HADOOP-2027-10.patch
          35 kB
          Lohit Vijaya Renu
        6. HADOOP-2027-9.patch
          35 kB
          Lohit Vijaya Renu
        7. HADOOP-2027-8.patch
          35 kB
          Lohit Vijaya Renu
        8. HADOOP-2027-7.patch
          31 kB
          Lohit Vijaya Renu
        9. HADOOP-2027-6.patch
          35 kB
          Lohit Vijaya Renu
        10. HADOOP-2027-5.patch
          31 kB
          Lohit Vijaya Renu
        11. HADOOP-2027-4.patch
          29 kB
          Lohit Vijaya Renu
        12. HADOOP-2027-3.patch
          33 kB
          Lohit Vijaya Renu
        13. HADOOP-2027-2.patch
          33 kB
          Lohit Vijaya Renu
        14. HADOOP-2027-1.patch
          22 kB
          Lohit Vijaya Renu

        Issue Links

          Activity

            People

              lohit Lohit Vijaya Renu
              omalley Owen O'Malley
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: