Hi, Rohith

Thanks very much!







At 2015-02-10 18:57:03, "Rohith Sharma K S" <rohithsharm...@huawei.com> wrote:


Currently automatic failover is not supported by YARN. This is open issue in 
Yarn

Refer : https://issues.apache.org/jira/i#browse/YARN-1177

 

Thanks & Regards

Rohith Sharma K S

 

From:郝东 [mailto:donhof...@163.com]
Sent: 10 February 2015 16:12
To:user@hadoop.apache.org
Subject: Can not execute failover for RM HA

 

I just set up ResourceManager HA. Both of the resourcemanagers started 
correctly. When I killed the active one, the other became active. But when I 
used the following command to do a manual failover, I got exceptions. I don't 
know what cause this problem. Could anyone help me ? Many Thanks!

Command:
yarn rmadmin -failover rm1 rm2

Exceptions:
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:315)
    at org.apache.hadoop.ha.HAAdmin.failover(HAAdmin.java:286)
    at org.apache.hadoop.ha.HAAdmin.runCmd(HAAdmin.java:453)
    at org.apache.hadoop.ha.HAAdmin.run(HAAdmin.java:382)
    at org.apache.hadoop.yarn.client.cli.RMAdminCLI.run(RMAdminCLI.java:318)
    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:434)

 

Reply via email to