/** * Set the configuration and extract the configuration parameters of interest * @param conf the new configuration */ @Override public void setConf (Configuration conf) { super.setConf(conf); if (conf != null) { scriptName = conf.get(SCRIPT_FILENAME_KEY); maxArgs = conf.getInt(SCRIPT_ARG_COUNT_KEY, DEFAULT_ARG_COUNT); } else { scriptName = null; maxArgs = 0; } }
/** * Set the configuration and extract the configuration parameters of interest * @param conf the new configuration */ @Override public void setConf (Configuration conf) { super.setConf(conf); if (conf != null) { scriptName = conf.get(SCRIPT_FILENAME_KEY); maxArgs = conf.getInt(SCRIPT_ARG_COUNT_KEY, DEFAULT_ARG_COUNT); } else { scriptName = null; maxArgs = 0; } }
/** * Set the configuration and extract the configuration parameters of interest * @param conf the new configuration */ @Override public void setConf (Configuration conf) { super.setConf(conf); if (conf != null) { scriptName = conf.get(SCRIPT_FILENAME_KEY); maxArgs = conf.getInt(SCRIPT_ARG_COUNT_KEY, DEFAULT_ARG_COUNT); } else { scriptName = null; maxArgs = 0; } }
/** * Set the configuration and extract the configuration parameters of interest * @param conf the new configuration */ @Override public void setConf (Configuration conf) { super.setConf(conf); if (conf != null) { scriptName = conf.get(SCRIPT_FILENAME_KEY); maxArgs = conf.getInt(SCRIPT_ARG_COUNT_KEY, DEFAULT_ARG_COUNT); } else { scriptName = null; maxArgs = 0; } }
/** * Set the configuration and extract the configuration parameters of interest * @param conf the new configuration */ @Override public void setConf (Configuration conf) { super.setConf(conf); if (conf != null) { scriptName = conf.get(SCRIPT_FILENAME_KEY); maxArgs = conf.getInt(SCRIPT_ARG_COUNT_KEY, DEFAULT_ARG_COUNT); } else { scriptName = null; maxArgs = 0; } }
/** * Configure the mapping by extracting any mappings defined in the * {@link #KEY_HADOOP_CONFIGURED_NODE_MAPPING} field * @param conf new configuration */ @Override public void setConf(Configuration conf) { super.setConf(conf); if (conf != null) { String[] mappings = conf.getStrings(KEY_HADOOP_CONFIGURED_NODE_MAPPING); if (mappings != null) { for (String str : mappings) { String host = str.substring(0, str.indexOf('=')); String rack = str.substring(str.indexOf('=') + 1); addNodeToRack(host, rack); } } } }
/** * Configure the mapping by extracting any mappings defined in the * {@link #KEY_HADOOP_CONFIGURED_NODE_MAPPING} field * @param conf new configuration */ @Override public void setConf(Configuration conf) { super.setConf(conf); if (conf != null) { String[] mappings = conf.getStrings(KEY_HADOOP_CONFIGURED_NODE_MAPPING); if (mappings != null) { for (String str : mappings) { String host = str.substring(0, str.indexOf('=')); String rack = str.substring(str.indexOf('=') + 1); addNodeToRack(host, rack); } } } }