/** * pick up the args from the service launcher * @param config configuration * @param args argument list */ @Override // RunService public Configuration bindArgs(Configuration config, String... args) throws Exception { // let the superclass process it Configuration superConf = super.bindArgs(config, args); // add the slider XML config ConfigHelper.injectSliderXMLResource(); //yarn-ify YarnConfiguration yarnConfiguration = new YarnConfiguration( superConf); serviceArgs = new SliderAMArgs(args); serviceArgs.parse(); return SliderUtils.patchConfiguration(yarnConfiguration); }
/** * pick up the args from the service launcher * @param config configuration * @param args argument list */ @Override // RunService public Configuration bindArgs(Configuration config, String... args) throws Exception { // let the superclass process it Configuration superConf = super.bindArgs(config, args); // add the slider XML config ConfigHelper.injectSliderXMLResource(); //yarn-ify YarnConfiguration yarnConfiguration = new YarnConfiguration( superConf); serviceArgs = new SliderAMArgs(args); serviceArgs.parse(); return SliderUtils.patchConfiguration(yarnConfiguration); }
/** * This is called <i>Before serviceInit is called</i> * @param config the initial configuration build up by the * service launcher. * @param args argument list list of arguments passed to the command line * after any launcher-specific commands have been stripped. * @return the post-binding configuration to pass to the <code>init()</code> * operation. * @throws Exception */ @Override public Configuration bindArgs(Configuration config, String... args) throws Exception { config = super.bindArgs(config, args); serviceArgs = new ClientArgs(args); serviceArgs.parse(); // add the slider XML config ConfigHelper.injectSliderXMLResource(); // yarn-ify YarnConfiguration yarnConfiguration = new YarnConfiguration(config); return patchConfiguration(yarnConfiguration); }
/** * This is called <i>Before serviceInit is called</i> * @param config the initial configuration build up by the * service launcher. * @param args argument list list of arguments passed to the command line * after any launcher-specific commands have been stripped. * @return the post-binding configuration to pass to the <code>init()</code> * operation. * @throws Exception */ @Override public Configuration bindArgs(Configuration config, String... args) throws Exception { config = super.bindArgs(config, args); serviceArgs = new ClientArgs(args); serviceArgs.parse(); // add the slider XML config ConfigHelper.injectSliderXMLResource(); // yarn-ify YarnConfiguration yarnConfiguration = new YarnConfiguration(config); return patchConfiguration(yarnConfiguration); }