hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject svn commit: r1430420 - /hive/trunk/shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java
Date Tue, 08 Jan 2013 18:06:10 GMT
Author: hashutosh
Date: Tue Jan  8 18:05:54 2013
New Revision: 1430420

URL: http://svn.apache.org/viewvc?rev=1430420&view=rev
Log:
HIVE-3789 : Patch 3648 causing the majority of unit tests to fail on branch 0.9 (Arup Malakar
via Ashutosh Chauhan)

Modified:
    hive/trunk/shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java

Modified: hive/trunk/shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java
URL: http://svn.apache.org/viewvc/hive/trunk/shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java?rev=1430420&r1=1430419&r2=1430420&view=diff
==============================================================================
--- hive/trunk/shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java (original)
+++ hive/trunk/shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java Tue Jan  8
18:05:54 2013
@@ -77,6 +77,19 @@ public class ProxyFileSystem extends Fil
   }
 
   /**
+   *
+   * @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
@@ -124,7 +137,7 @@ public class ProxyFileSystem extends Fil
 
 
   @Override
-  protected void checkPath(Path path) {
+  protected void checkPath(final Path path) {
     super.checkPath(swizzleParamPath(path));
   }
 



Mime
View raw message