[ 
https://issues.apache.org/jira/browse/MAPREDUCE-2111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Kling updated MAPREDUCE-2111:
-------------------------------------

    Priority: Minor  (was: Major)

> make getPathInHar public in HarFileSystem
> -----------------------------------------
>
>                 Key: MAPREDUCE-2111
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2111
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>            Reporter: Patrick Kling
>            Priority: Minor
>         Attachments: MAPREDUCE-2111.patch
>
>
> 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);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to