hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HDFS-12420) Disable Namenode format when data already exists
Date Tue, 12 Sep 2017 17:00:06 GMT

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

Arpit Agarwal edited comment on HDFS-12420 at 9/12/17 4:59 PM:
---------------------------------------------------------------

Thanks for this improvement [~ajayydv]. Couple of comments, in addition to the test case as
suggested by Rushabh:
# Let's also make the -force option a no-op. We can continue to accept it but it should have
no effect and we should print a warning saying that the force option is being ignored.
# Same with the -nonInteractive option.
# Also let's update the site documentation with the new behavior:
https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html#namenode
The site docs are in [HDFScommands.md|https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md]


was (Author: arpitagarwal):
Thanks for this improvement [~ajayydv]. Couple of comments, in addition to the test case as
suggested by Rushabh:
# Let's also make the -force option a no-op. We can continue to accept it but it should have
no effect and we should print a warning saying that the force option is being ignored.
# Same with the -nonInteractive option.

> 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
>
>
> 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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message