Ensure TableMetaClient and FileSystem instances have exclusive copy of Configuration
This commit is contained in:
committed by
Balaji Varadarajan
parent
a0d7ab2384
commit
2c40e8419e
@@ -50,13 +50,18 @@ public class TimelineService {
|
||||
return serverPort;
|
||||
}
|
||||
|
||||
public TimelineService(int serverPort, FileSystemViewManager globalFileSystemViewManager) throws IOException {
|
||||
this.conf = FSUtils.prepareHadoopConf(new Configuration());
|
||||
public TimelineService(int serverPort, FileSystemViewManager globalFileSystemViewManager,
|
||||
Configuration conf) throws IOException {
|
||||
this.conf = FSUtils.prepareHadoopConf(conf);
|
||||
this.fs = FileSystem.get(conf);
|
||||
this.serverPort = serverPort;
|
||||
this.fsViewsManager = globalFileSystemViewManager;
|
||||
}
|
||||
|
||||
public TimelineService(int serverPort, FileSystemViewManager globalFileSystemViewManager) throws IOException {
|
||||
this(serverPort, globalFileSystemViewManager, new Configuration());
|
||||
}
|
||||
|
||||
public TimelineService(Config config) throws IOException {
|
||||
this(config.serverPort, buildFileSystemViewManager(config,
|
||||
new SerializableConfiguration(FSUtils.prepareHadoopConf(new Configuration()))));
|
||||
|
||||
Reference in New Issue
Block a user