Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1905

Improve the usability of namenode -format

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      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.

        Attachments

        1. HDFS-1905-1.patch
          2 kB
          Bharath Mundlapudi
        2. HDFS-1905-2.patch
          6 kB
          Bharath Mundlapudi

          Issue Links

            Activity

              People

              • Assignee:
                bharathm Bharath Mundlapudi
                Reporter:
                bharathm Bharath Mundlapudi
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: