|
@@ -29,6 +29,8 @@ import org.apache.commons.logging.Log;
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
import org.apache.hadoop.conf.Configurable;
|
|
|
import org.apache.hadoop.conf.Configuration;
|
|
|
+import org.apache.hadoop.fs.CommonConfigurationKeysPublic;
|
|
|
+import org.apache.hadoop.hdfs.DFSConfigKeys;
|
|
|
import org.apache.hadoop.hdfs.DFSUtil;
|
|
|
import org.apache.hadoop.hdfs.protocol.ClientProtocol;
|
|
|
import org.apache.hadoop.io.retry.FailoverProxyProvider;
|
|
@@ -87,7 +89,13 @@ public class ConfiguredFailoverProxyProvider implements FailoverProxyProvider,
|
|
|
|
|
|
@Override
|
|
|
public synchronized void setConf(Configuration conf) {
|
|
|
- this.conf = conf;
|
|
|
+ this.conf = new Configuration(conf);
|
|
|
+ int maxRetries = this.conf.getInt(
|
|
|
+ DFSConfigKeys.DFS_CLIENT_FAILOVER_CONNECTION_RETRIES_KEY,
|
|
|
+ DFSConfigKeys.DFS_CLIENT_FAILOVER_CONNECTION_RETRIES_DEFAULT);
|
|
|
+ this.conf.setInt(
|
|
|
+ CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_MAX_RETRIES_KEY,
|
|
|
+ maxRetries);
|
|
|
try {
|
|
|
ugi = UserGroupInformation.getCurrentUser();
|
|
|
|