You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2018/04/13 07:08:00 UTC

[jira] [Updated] (HADOOP-14970) MiniHadoopClusterManager doesn't respect lack of format option

     [ https://issues.apache.org/jira/browse/HADOOP-14970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Shvachko updated HADOOP-14970:
-----------------------------------------
       Resolution: Fixed
     Hadoop Flags: Reviewed
    Fix Version/s: 3.0.3
                   2.9.2
                   3.1.1
                   3.2.0
                   2.8.4
                   2.10.0
                   2.7.7
           Status: Resolved  (was: Patch Available)

I just committed this down to branch-2.7. Thank you [~xkrogen].

> MiniHadoopClusterManager doesn't respect lack of format option
> --------------------------------------------------------------
>
>                 Key: HADOOP-14970
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14970
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>            Reporter: Erik Krogen
>            Assignee: Erik Krogen
>            Priority: Minor
>             Fix For: 2.7.7, 2.10.0, 2.8.4, 3.2.0, 3.1.1, 2.9.2, 3.0.3
>
>         Attachments: HADOOP-14970.000.patch
>
>
> 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:
> {code}
>       dfs = new MiniDFSCluster.Builder(conf).nameNodePort(nnPort)
>           .nameNodeHttpPort(nnHttpPort).numDataNodes(numDataNodes)
>           .startupOption(dfsOpts).build();
> {code}
> {{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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org