hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lium...@apache.org
Subject hadoop git commit: HADOOP-14427. Avoid reloading of Configuration in ViewFileSystem creation. Contributed by Vinayakumar B
Date Wed, 17 May 2017 20:24:15 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 b295924d4 -> 94755e2d6


HADOOP-14427. Avoid reloading of Configuration in ViewFileSystem creation. Contributed by
Vinayakumar B

(cherry picked from commit eb7791b4743c593ac7d0f0d08962132723ffe3c6)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/94755e2d
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/94755e2d
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/94755e2d

Branch: refs/heads/branch-2
Commit: 94755e2d6d9d04b8e27ec4c90b58a6079aa801bd
Parents: b295924
Author: Mingliang Liu <liuml07@apache.org>
Authored: Wed May 17 13:12:14 2017 -0700
Committer: Mingliang Liu <liuml07@apache.org>
Committed: Wed May 17 13:21:34 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/94755e2d/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
index c315dc5..6b48e72 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
@@ -178,7 +178,7 @@ public class ViewFileSystem extends FileSystem {
         protected
         FileSystem getTargetFileSystem(final INodeDir<FileSystem> dir)
           throws URISyntaxException {
-          return new InternalDirOfViewFs(dir, creationTime, ugi, myUri);
+          return new InternalDirOfViewFs(dir, creationTime, ugi, myUri, config);
         }
 
         @Override
@@ -778,11 +778,11 @@ public class ViewFileSystem extends FileSystem {
     final URI myUri;
     
     public InternalDirOfViewFs(final InodeTree.INodeDir<FileSystem> dir,
-        final long cTime, final UserGroupInformation ugi, URI uri)
-      throws URISyntaxException {
+        final long cTime, final UserGroupInformation ugi, URI uri,
+        Configuration config) throws URISyntaxException {
       myUri = uri;
       try {
-        initialize(myUri, new Configuration());
+        initialize(myUri, config);
       } catch (IOException e) {
         throw new RuntimeException("Cannot occur");
       }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message