Hadoop Common
  1. Hadoop Common
  2. HADOOP-2027

FileSystem should provide byte ranges for file locations

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.17.0
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change
    • Release Note:
      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();
      }
      
      1. HADOOP-2027-14.patch
        38 kB
        Lohit Vijayarenu
      2. HADOOP-2559-13.patch
        38 kB
        Lohit Vijayarenu
      3. HADOOP-2559-12.patch
        39 kB
        Lohit Vijayarenu
      4. HADOOP-2559-11.patch
        37 kB
        Lohit Vijayarenu
      5. HADOOP-2027-10.patch
        35 kB
        Lohit Vijayarenu
      6. HADOOP-2027-9.patch
        35 kB
        Lohit Vijayarenu
      7. HADOOP-2027-8.patch
        35 kB
        Lohit Vijayarenu
      8. HADOOP-2027-7.patch
        31 kB
        Lohit Vijayarenu
      9. HADOOP-2027-6.patch
        35 kB
        Lohit Vijayarenu
      10. HADOOP-2027-5.patch
        31 kB
        Lohit Vijayarenu
      11. HADOOP-2027-4.patch
        29 kB
        Lohit Vijayarenu
      12. HADOOP-2027-3.patch
        33 kB
        Lohit Vijayarenu
      13. HADOOP-2027-2.patch
        33 kB
        Lohit Vijayarenu
      14. HADOOP-2027-1.patch
        22 kB
        Lohit Vijayarenu

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Lohit Vijayarenu
              Reporter:
              Owen O'Malley
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development