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

make getPathInHar public in HarFileSystem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      This patch makes getPathInHar public in HarFileSystem allowing us to retrieve the local path name of a file stored within a HAR archive. This is useful for maintaining HAR archives within the context of RAID.

      Index: src/tools/org/apache/hadoop/fs/HarFileSystem.java
      ===================================================================
      — src/tools/org/apache/hadoop/fs/HarFileSystem.java (revision 1004421)
      +++ src/tools/org/apache/hadoop/fs/HarFileSystem.java (working copy)
      @@ -278,7 +278,7 @@

      • @param path the fully qualified path in the har filesystem.
      • @return relative path in the filesystem.
        */
      • private Path getPathInHar(Path path) {
        + public Path getPathInHar(Path path) {
        Path harPath = new Path(path.toUri().getPath());
        if (archivePath.compareTo(harPath) == 0)
        return new Path(Path.SEPARATOR);

      Attachments

        1. MAPREDUCE-2111.patch
          0.6 kB
          Patrick Kling

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pkling Patrick Kling
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: