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
Attachments
Issue Links
- is depended upon by
-
MAPREDUCE-2156 Raid-aware FSCK
-
- Closed
-