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

This commit is contained in:
Erik Krogen 2018-04-12 23:27:51 -07:00 committed by Konstantin V Shvachko
parent 226bedc023
commit 1a407bc990

View File

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