[
https://issues.apache.org/jira/browse/HDFS-12420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16165068#comment-16165068
]
Vinayakumar B commented on HDFS-12420:
--------------------------------------
bq. In spite of the -force option or the prompt for Y/N, admins do make
mistakes and end up loosing data. In a real production cluster with real data,
why would someone want to do a format? In dev/qa clusters, I can see the need
for format.
Yes I agree, admin can make mistakes. In real cluster 'format' command
(especially with -force) should be used with at-most attention(same as 'rm -r'
in linux).
bq. Another option is to configure the cluster as "production" mode, where
format will not be allowed. Dev/test clusters can be configured with 'dev'
mode, where format is allowed.
Still if you insist to disallow format in 'production' clusters, this option
looks good, provided default value set to 'dev' mode to keep current 'prompt'
behavior as is.
> Disable Namenode format when data already exists
> ------------------------------------------------
>
> Key: HDFS-12420
> URL: https://issues.apache.org/jira/browse/HDFS-12420
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Ajay Kumar
> Assignee: Ajay Kumar
> Attachments: HDFS-12420.01.patch, HDFS-12420.02.patch
>
>
> Disable NameNode format to avoid accidental formatting of Namenode in
> production cluster. If someone really wants to delete the complete fsImage,
> they can first delete the metadata dir and then run {code} hdfs namenode
> -format{code} manually.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]