Beispiel #1
0
 public static List<URI> getDataNodeStorageDirs() {
   Configuration conf = new HdfsConfiguration();
   Collection<String> dirNames = conf.getTrimmedStringCollection(DFS_DATANODE_DATA_DIR_KEY);
   return Util.stringCollectionAsURIs(dirNames);
 }
 private static Collection<String> getJtServiceIds(Configuration conf, String logicalName) {
   return conf.getTrimmedStringCollection(MR_HA_JOBTRACKERS_KEY_PREFIX + "." + logicalName);
 }