[
https://issues.apache.org/jira/browse/HADOOP-13933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15820194#comment-15820194
]
Surendra Singh Lilhore commented on HADOOP-13933:
-------------------------------------------------
Thanks [~linyiqun] for review...
Attached updated patch v5...
This command will not print anything if it fail to get service IDs from
configuration, so I added one check.
{code}
+ if (targetIds.isEmpty()) {
+ errOut.println("Failed to get service IDs");
+ return -1;
+ }
{code}
Please review...
> Add haadmin -getAllServiceState option to get the HA state of all the
> NameNodes/ResourceManagers
> ------------------------------------------------------------------------------------------------
>
> Key: HADOOP-13933
> URL: https://issues.apache.org/jira/browse/HADOOP-13933
> Project: Hadoop Common
> Issue Type: New Feature
> Components: tools
> Affects Versions: 2.7.1
> Reporter: Surendra Singh Lilhore
> Assignee: Surendra Singh Lilhore
> Attachments: HADOOP-13933.002.patch, HADOOP-13933.003.patch,
> HADOOP-13933.003.patch, HADOOP-13933.004.patch, HADOOP-13933.005.patch,
> HDFS-9559.01.patch
>
>
> Currently we have one command to get state of namenode.
> {code}
> ./hdfs haadmin -getServiceState <serviceId>
> {code}
> It will be good to have command which will give state of all the namenodes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]