hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-3006) Improve the error message when attempting manual failover with auto-failover enabled
Date Sat, 02 May 2015 12:00:15 GMT

    [ https://issues.apache.org/jira/browse/YARN-3006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14525217#comment-14525217
] 

Hudson commented on YARN-3006:
------------------------------

FAILURE: Integrated in Hadoop-Yarn-trunk #915 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/915/])
YARN-3006. Improve the error message when attempting manual failover with auto-failover enabled.
(Akira AJISAKA via wangda) (wangda: rev 7d46a806e71de6692cd230e64e7de18a8252019d)
* hadoop-yarn-project/CHANGES.txt
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/HAAdmin.java


> Improve the error message when attempting manual failover with auto-failover enabled
> ------------------------------------------------------------------------------------
>
>                 Key: YARN-3006
>                 URL: https://issues.apache.org/jira/browse/YARN-3006
>             Project: Hadoop YARN
>          Issue Type: Improvement
>    Affects Versions: 2.6.0
>            Reporter: Akira AJISAKA
>            Assignee: Akira AJISAKA
>            Priority: Minor
>             Fix For: 2.8.0, 2.7.1
>
>         Attachments: YARN-3006.001.patch
>
>
> When executing manual failover with automatic failover enabled, UnsupportedOperationException
is thrown.
> {code}
> # yarn rmadmin -failover rm1 rm2
> Exception in thread "main" java.lang.UnsupportedOperationException: RMHAServiceTarget
doesn't have a corresponding ZKFC address
> 	at org.apache.hadoop.yarn.client.RMHAServiceTarget.getZKFCAddress(RMHAServiceTarget.java:51)
> 	at org.apache.hadoop.ha.HAServiceTarget.getZKFCProxy(HAServiceTarget.java:94)
> 	at org.apache.hadoop.ha.HAAdmin.gracefulFailoverThroughZKFCs(HAAdmin.java:311)
> 	at org.apache.hadoop.ha.HAAdmin.failover(HAAdmin.java:282)
> 	at org.apache.hadoop.ha.HAAdmin.runCmd(HAAdmin.java:449)
> 	at org.apache.hadoop.ha.HAAdmin.run(HAAdmin.java:378)
> 	at org.apache.hadoop.yarn.client.cli.RMAdminCLI.run(RMAdminCLI.java:482)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
> 	at org.apache.hadoop.yarn.client.cli.RMAdminCLI.main(RMAdminCLI.java:622)
> {code}
> I'm thinking the above message is confusing to users. (Users may think whether ZKFC is
configured correctly...) The command should output error message to stderr instead of throwing
Exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message