Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2918

HA: Update HA docs to cover dfsadmin

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: None
    • Component/s: ha
    • Labels:
      None
    • Target Version/s:

      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
      

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Eli Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development