HADOOP-14970. MiniHadoopClusterManager doesn't respect lack of format option. Contributed by Erik Krogen
This commit is contained in:
parent
226bedc023
commit
1a407bc990
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user