You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by "Patrick Kling (JIRA)" <ji...@apache.org> on 2010/11/16 20:30:19 UTC

[jira] Resolved: (MAPREDUCE-2111) make getPathInHar public in HarFileSystem

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

Patrick Kling resolved MAPREDUCE-2111.
--------------------------------------

    Resolution: Won't Fix

This is no longer needed if we have MAPREDUCE-1752 and HDFS-1483.

> 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.