HADOOP-14970. MiniHadoopClusterManager doesn't respect lack of format option. Contributed by Erik Krogen

(cherry picked from commit 1a407bc990)
This commit is contained in:
Erik Krogen 2018-04-12 23:27:51 -07:00 committed by Konstantin V Shvachko
parent 84531ad9b6
commit e343be46f8
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ public class MiniHadoopClusterManager {
if (!noDFS) { if (!noDFS) {
dfs = new MiniDFSCluster.Builder(conf).nameNodePort(nnPort) dfs = new MiniDFSCluster.Builder(conf).nameNodePort(nnPort)
.nameNodeHttpPort(nnHttpPort).numDataNodes(numDataNodes) .nameNodeHttpPort(nnHttpPort).numDataNodes(numDataNodes)
.format(dfsOpts == StartupOption.FORMAT)
.startupOption(dfsOpts).build(); .startupOption(dfsOpts).build();
LOG.info("Started MiniDFSCluster -- namenode on port " LOG.info("Started MiniDFSCluster -- namenode on port "
+ dfs.getNameNodePort()); + dfs.getNameNodePort());