Exemplo n.º 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);
 }
Exemplo n.º 2
0
 private static Collection<String> getJtServiceIds(Configuration conf, String logicalName) {
   return conf.getTrimmedStringCollection(MR_HA_JOBTRACKERS_KEY_PREFIX + "." + logicalName);
 }