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

MiniHadoopClusterManager doesn't respect lack of format option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 2.10.0, 2.8.4, 3.2.0, 3.1.1, 2.9.2, 3.0.3, 2.7.7
    • None
    • None
    • 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

        1. HADOOP-14970.000.patch
          1 kB
          Erik Krogen

        Issue Links

          Activity

            People

              xkrogen Erik Krogen
              xkrogen Erik Krogen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: