if (!federation) {
conf.set(FileSystem.FS_DEFAULT_NAME_KEY, "127.0.0.1:" + nameNodePort);
conf.set("dfs.http.address", "127.0.0.1:0");
FileSystem.setDefaultUri(conf, "hdfs://localhost:" +
Integer.toString(nameNodePort));
NameNode nn = createNameNode(0, conf, numDataNodes, manageNameDfsDirs,
format, operation);
nameNodes[0] = new NameNodeInfo(nn, conf);
} else {
Collection<String> nameserviceIds = conf.getStringCollection(
FSConstants.DFS_FEDERATION_NAMESERVICES);