Configuration serverConf =
ConfigHelper.loadFromResource(SERVER_RESOURCE);
ConfigHelper.mergeConfigurations(conf, serverConf, SERVER_RESOURCE);
AbstractActionArgs action = serviceArgs.getCoreAction();
SliderAMCreateAction createAction = (SliderAMCreateAction) action;
//sort out the location of the AM
serviceArgs.applyDefinitions(conf);
serviceArgs.applyFileSystemURL(conf);
String rmAddress = createAction.getRmAddress();
if (rmAddress != null) {
log.debug("Setting rm address from the command line: {}", rmAddress);
SliderUtils.setRmSchedulerAddress(conf, rmAddress);
}
serviceArgs.applyDefinitions(conf);