@Test public void mergeEmptyHadoopConfiguration() { org.apache.hadoop.conf.Configuration hadoopConfig = new org.apache.hadoop.conf.Configuration(); mConf.merge( HadoopConfigurationUtils.getConfigurationFromHadoop(hadoopConfig), Source.RUNTIME); assertFalse(mConf.getBoolean(PropertyKey.ZOOKEEPER_ENABLED)); }
public static Map<String, Object> getConfigurationFromHadoop( org.apache.hadoop.conf.Configuration hadoopConf) { Map<String, Object> alluxioConfProperties = new HashMap<>(); for (Map.Entry<String, String> entry : hadoopConf) { String propertyName = entry.getKey(); if (PropertyKey.isValid(propertyName)) { alluxioConfProperties.put(propertyName, entry.getValue()); } } return alluxioConfProperties; }
HadoopConfigurationUtils { public static Map<String, Object> getConfigurationFromHadoop( org.apache.hadoop.conf.Configuration hadoopConf) { Map<String, Object> alluxioConfProperties = new HashMap<>(); for (Map.Entry<String, String> entry : hadoopConf) { String propertyName = entry.getKey(); if (PropertyKey.isValid(propertyName)) { alluxioConfProperties.put(propertyName, entry.getValue()); } } return alluxioConfProperties; } }
HadoopConfigurationUtils { public static Map<String, Object> getConfigurationFromHadoop( org.apache.hadoop.conf.Configuration hadoopConf) { Map<String, Object> alluxioConfProperties = new HashMap<>(); for (Map.Entry<String, String> entry : hadoopConf) { String propertyName = entry.getKey(); if (PropertyKey.isValid(propertyName)) { alluxioConfProperties.put(propertyName, entry.getValue()); } } return alluxioConfProperties; } private  HadoopConfigurationUtils(); }
HadoopConfigurationUtils { public static Map<String, Object> getConfigurationFromHadoop( org.apache.hadoop.conf.Configuration hadoopConf) { Map<String, Object> alluxioConfProperties = new HashMap<>(); for (Map.Entry<String, String> entry : hadoopConf) { String propertyName = entry.getKey(); if (PropertyKey.isValid(propertyName)) { alluxioConfProperties.put(propertyName, entry.getValue()); } } return alluxioConfProperties; } private  HadoopConfigurationUtils(); static Map<String, Object> getConfigurationFromHadoop(
      org.apache.hadoop.conf.Configuration hadoopConf); static org.apache.hadoop.conf.Configuration mergeAlluxioConfiguration(
      org.apache.hadoop.conf.Configuration source, AlluxioConfiguration alluxioConf); }
HadoopConfigurationUtils { public static Map<String, Object> getConfigurationFromHadoop( org.apache.hadoop.conf.Configuration hadoopConf) { Map<String, Object> alluxioConfProperties = new HashMap<>(); for (Map.Entry<String, String> entry : hadoopConf) { String propertyName = entry.getKey(); if (PropertyKey.isValid(propertyName)) { alluxioConfProperties.put(propertyName, entry.getValue()); } } return alluxioConfProperties; } private  HadoopConfigurationUtils(); static Map<String, Object> getConfigurationFromHadoop(
      org.apache.hadoop.conf.Configuration hadoopConf); static org.apache.hadoop.conf.Configuration mergeAlluxioConfiguration(
      org.apache.hadoop.conf.Configuration source, AlluxioConfiguration alluxioConf);  }