HADOOP-14970. MiniHadoopClusterManager doesn't respect lack of format option. Contributed by Erik Krogen
(cherry picked from commit 1a407bc990
)
This commit is contained in:
parent
84531ad9b6
commit
e343be46f8
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue