[ 
https://issues.apache.org/jira/browse/HADOOP-14970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16436028#comment-16436028
 ] 

Konstantin Shvachko commented on HADOOP-14970:
----------------------------------------------

+1 on the change. Should not format DNs if the {{StartupOption.REGULAR}}. Will 
commit in a bit.

> 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
>         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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to