Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1636

If dfs.name.dir points to an empty dir, namenode format shouldn't require confirmation

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      If dfs.name.dir points to an empty dir, namenode -format no longer requires confirmation.

      Description

      Right now, running namenode -format when dfs.name.dir is configured to a dir which exists but is empty still asks for confirmation. This is unnecessary since it isn't blowing away any real data.

      1. HDFS-1636.r1.diff
        0.9 kB
        Harsh J
      2. HDFS-1636.r2.diff
        2 kB
        Harsh J
      3. HDFS-1636.r3.diff
        3 kB
        Harsh J

        Activity

        Todd Lipcon created issue -
        Harsh J made changes -
        Field Original Value New Value
        Attachment HDFS-1636.r1.diff [ 12478516 ]
        Harsh J made changes -
        Assignee Harsh J Chouraria [ qwertymaniac ]
        Harsh J made changes -
        Attachment HDFS-1636.r2.diff [ 12480416 ]
        Harsh J made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Release Note If dfs.name.dir points to an empty dir, namenode format shouldn't require confirmation.
        Fix Version/s 0.23.0 [ 12315571 ]
        Harsh J made changes -
        Attachment HDFS-1636.r3.diff [ 12480541 ]
        Todd Lipcon made changes -
        Release Note If dfs.name.dir points to an empty dir, namenode format shouldn't require confirmation. If dfs.name.dir points to an empty dir, namenode -format no longer requires confirmation.
        Resolution Fixed [ 1 ]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]

          People

          • Assignee:
            Harsh J
            Reporter:
            Todd Lipcon
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development