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

Add ability for safemode to wait for a minimum number of live datanodes

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.22.0
    • 0.22.0, 1.1.1
    • scripts
    • None
    • Reviewed

    Description

      When starting up a fresh cluster programatically, users often want to wait until DFS is "writable" before continuing in a script. "dfsadmin -safemode wait" doesn't quite work for this on a completely fresh cluster, since when there are 0 blocks on the system, 100% of them are accounted for before any DNs have reported.

      This JIRA is to add a command which waits until a certain number of DNs have reported as alive to the NN.

      Attachments

        1. h528_20120731_b-1.patch
          9 kB
          Tsz-wo Sze
        2. hdfs-528.txt
          17 kB
          Todd Lipcon
        3. hdfs-528.txt
          8 kB
          Todd Lipcon
        4. hdfs-528-v2.txt
          15 kB
          Todd Lipcon
        5. hdfs-528-v3.txt
          15 kB
          Todd Lipcon
        6. hdfs-528-v4.txt
          18 kB
          Eli Collins

        Activity

          People

            tlipcon Todd Lipcon
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: