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] [Commented] (HDFS-12420) Disable Namenode format for prod clusters when data already exists
Date Thu, 14 Sep 2017 21:51:00 GMT

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

Arpit Agarwal commented on HDFS-12420:

Thanks [~ajayydv]. I liked the idea of disallowing format completely but this approach should
address Vinay and Allen's concerns.

Few comments on the patch:
# The following can be replaced with conf.getBoolean
conf.get(DFSConfigKeys.DFS_CLUSTER_IS_PROD, DFSConfigKeys
# We should set {{force}} and {{isInteractive}} to false if its a prod cluster to remove any
possibility of deleting data. Also you can log a warning saying _... prod cluster. Ignoring
the --force and --nonInteractive flags._
# Move the new property to core-site/CommonConfigurationKeysPublic. Also you could consider
renaming it to something like {{hadoop.is.prod.cluster}}.

> Disable Namenode format for prod clusters 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, HDFS-12420.03.patch, HDFS-12420.04.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

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

View raw message