|
@@ -262,7 +262,7 @@ public class AuxServices extends AbstractService
|
|
}
|
|
}
|
|
}
|
|
}
|
|
s = AuxiliaryServiceWithCustomClassLoader.getInstance(
|
|
s = AuxiliaryServiceWithCustomClassLoader.getInstance(
|
|
- conf, className, dest.toString());
|
|
|
|
|
|
+ new Configuration(conf), className, dest.toString());
|
|
}
|
|
}
|
|
LOG.info("The aux service:" + sName
|
|
LOG.info("The aux service:" + sName
|
|
+ " are using the custom classloader");
|
|
+ " are using the custom classloader");
|
|
@@ -273,7 +273,7 @@ public class AuxServices extends AbstractService
|
|
if (sClass == null) {
|
|
if (sClass == null) {
|
|
throw new RuntimeException("No class defined for " + sName);
|
|
throw new RuntimeException("No class defined for " + sName);
|
|
}
|
|
}
|
|
- s = ReflectionUtils.newInstance(sClass, conf);
|
|
|
|
|
|
+ s = ReflectionUtils.newInstance(sClass, new Configuration(conf));
|
|
}
|
|
}
|
|
if (s == null) {
|
|
if (s == null) {
|
|
throw new RuntimeException("No object created for " + sName);
|
|
throw new RuntimeException("No object created for " + sName);
|
|
@@ -294,7 +294,7 @@ public class AuxServices extends AbstractService
|
|
stateStoreFs.mkdirs(storePath, storeDirPerms);
|
|
stateStoreFs.mkdirs(storePath, storeDirPerms);
|
|
s.setRecoveryPath(storePath);
|
|
s.setRecoveryPath(storePath);
|
|
}
|
|
}
|
|
- s.init(conf);
|
|
|
|
|
|
+ s.init(new Configuration(conf));
|
|
} catch (RuntimeException e) {
|
|
} catch (RuntimeException e) {
|
|
LOG.error("Failed to initialize " + sName, e);
|
|
LOG.error("Failed to initialize " + sName, e);
|
|
throw e;
|
|
throw e;
|