Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14970

MiniHadoopClusterManager doesn't respect lack of format option

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.10.0, 2.8.4, 3.2.0, 3.1.1, 2.9.2, 3.0.3, 2.7.7
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      The CLI MiniCluster, MiniHadoopClusterManager, says that by default it does not format its directories, and provides the -format option to specify that it should do so. However, it builds its MiniDFSCluster like:

            dfs = new MiniDFSCluster.Builder(conf).nameNodePort(nnPort)
                .nameNodeHttpPort(nnHttpPort).numDataNodes(numDataNodes)
                .startupOption(dfsOpts).build();
      

      MiniDFSCluster.Builder, by default, sets format to true, so even though the startupOption is REGULAR, it will still format regardless of whether or not the flag is supplied.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xkrogen Erik Krogen
                Reporter:
                xkrogen Erik Krogen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: