Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7F2D26312 for ; Mon, 16 May 2011 21:21:30 +0000 (UTC) Received: (qmail 91917 invoked by uid 500); 16 May 2011 21:21:30 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 91885 invoked by uid 500); 16 May 2011 21:21:30 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 91877 invoked by uid 99); 16 May 2011 21:21:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 21:21:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 21:21:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B23F5CCA21 for ; Mon, 16 May 2011 21:20:47 +0000 (UTC) Date: Mon, 16 May 2011 21:20:47 +0000 (UTC) From: "Bharath Mundlapudi (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <2136062108.16743.1305580847726.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <456008805.33444.1304980863138.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-1905) Improve the usability of namenode -format MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034320#comment-13034320 ] Bharath Mundlapudi commented on HDFS-1905: ------------------------------------------ For Comment 2: Lets say that, i want to format a namenode which is part of a particular cluster. Reusing the cluster id is useful here - I just want to format this namenode and also want it to be part of same cluster. > Improve the usability of namenode -format > ------------------------------------------ > > Key: HDFS-1905 > URL: https://issues.apache.org/jira/browse/HDFS-1905 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.23.0 > Reporter: Bharath Mundlapudi > Assignee: Bharath Mundlapudi > Priority: Minor > Fix For: 0.23.0 > > Attachments: HDFS-1905-1.patch > > > While setting up 0.23 version based cluster, i ran into this issue. When i issue a format namenode command, which got changed in 23, it should let the user know to how to use this command in case where complete options were not specified. > ./hdfs namenode -format > I get the following error msg, still its not clear what and how user should use this command. > 11/05/09 15:36:25 ERROR namenode.NameNode: java.lang.IllegalArgumentException: Format must be provided with clusterid > at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1483) > at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1623) > at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1689) > > The usability of this command can be improved. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira