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

HA: Update HA docs to cover dfsadmin

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0-alpha
    • None
    • ha
    • None

    Description

      dfsadmin currently always uses the first namenode rather than failing over. It should failover like other clients, unless fs specifies a specific namenode.

      hadoop-0.24.0-SNAPSHOT $ ./bin/hdfs haadmin -failover nn1 nn2
      Failover from nn1 to nn2 successful
      # nn2 is 8022
      hadoop-0.24.0-SNAPSHOT $ ./bin/hdfs dfsadmin -fs localhost:8022 -safemode enter
      Safe mode is ON
      hadoop-0.24.0-SNAPSHOT $ ./bin/hdfs dfsadmin -safemode get 
      Safe mode is OFF
      hadoop-0.24.0-SNAPSHOT $ ./bin/hdfs dfsadmin -fs localhost:8022 -safemode get
      Safe mode is ON
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            eli2 Eli Collins
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: