HIVE-3789 : Patch 3648 causing the majority of unit tests to fail on branch 0.9 (Arup Malakar via Ashutosh Chauhan)
git-svn-id: https://svn.apache.org/repos/asf/hive/branches/branch-0.9@1430427 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java b/shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java
index 218236f..e871142 100644
--- a/shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java
+++ b/shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java
@@ -72,6 +72,19 @@
}
/**
+ *
+ * @param p
+ * @return
+ * @throws IOException
+ */
+ public Path resolvePath(final Path p) throws IOException {
+ // Return the fully-qualified path of path f resolving the path
+ // through any symlinks or mount point
+ checkPath(p);
+ return getFileStatus(p).getPath();
+ }
+
+ /**
* Create a proxy file system for fs.
*
* @param fs FileSystem to create proxy for
@@ -119,7 +132,7 @@
@Override
- protected void checkPath(Path path) {
+ protected void checkPath(final Path path) {
super.checkPath(swizzleParamPath(path));
}