HADOOP-14427. Avoid reloading of Configuration in ViewFileSystem creation. Contributed by Vinayakumar B
(cherry picked from commit eb7791b474
)
This commit is contained in:
parent
b295924d49
commit
94755e2d6d
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue