You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Eli Collins (JIRA)" <ji...@apache.org> on 2012/08/31 05:55:16 UTC
[jira] [Assigned] (HDFS-2918) HA: Update HA docs to cover dfsadmin
[ https://issues.apache.org/jira/browse/HDFS-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eli Collins reassigned HDFS-2918:
---------------------------------
Assignee: (was: Eli Collins)
> HA: Update HA docs to cover dfsadmin
> ------------------------------------
>
> Key: HDFS-2918
> URL: https://issues.apache.org/jira/browse/HDFS-2918
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: ha
> Affects Versions: 0.24.0
> Reporter: Eli Collins
>
> dfsadmin currently always uses the first namenode rather than failing over. It should failover like other clients, unless fs specifies a specific namenode.
> {noformat}
> 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
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira