/** * Set an entire map full of values * * @param config config to patch * @param map map of data * @param origin origin data */ public static void addConfigMap(Configuration config, Map<String, String> map, String origin) throws BadConfigException { addConfigMap(config, map.entrySet(), origin); }
/** * Set an entire map full of values * * @param config config to patch * @param map map of data * @param origin origin data */ public static void addConfigMap(Configuration config, Map<String, String> map, String origin) throws BadConfigException { addConfigMap(config, map.entrySet(), origin); }
/** * Convert to Hadoop XML * @return the configuration as a Hadoop Configuratin */ public Configuration asConfiguration() { Configuration conf = new Configuration(false); try { ConfigHelper.addConfigMap(conf, entries, ""); } catch (BadConfigException e) { // triggered on a null value; switch to a runtime (and discard the stack) throw new RuntimeException(e.toString()); } return conf; }
/** * Convert to Hadoop XML * @return the configuration as a Hadoop Configuratin */ public Configuration asConfiguration() { Configuration conf = new Configuration(false); try { ConfigHelper.addConfigMap(conf, entries, ""); } catch (BadConfigException e) { // triggered on a null value; switch to a runtime (and discard the stack) throw new RuntimeException(e.toString()); } return conf; }
ConfigHelper.addConfigMap(siteConf, clusterConfMap.entrySet(), "HBase Provider");
ConfigHelper.addConfigMap(siteConf, clusterConfMap.entrySet(), "Accumulo Provider");