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
64105868e9
commit
bce57a139b
|
@ -156,6 +156,7 @@ public class MiniHadoopClusterManager {
|
|||
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());
|
||||
|
|
Loading…
Reference in New Issue