GitHub user liu-zhaokun opened a pull request: https://github.com/apache/spark/pull/18108
[SPARK-20884] Spark' masters will be both standby due to the bug of curator [https://issues.apache.org/jira/browse/SPARK-20884](https://issues.apache.org/jira/browse/SPARK-20884) I built a cluster with two masters and three workers.When there is a switch of master's state,two masters are both standby in a long period.There are some ERROR in master's logfile " ERROR CuratorFrameworkImpl: Background exception was not retry-able or retry gave up java.lang.IllegalArgumentException: Path must start with / character at org.apache.curator.utils.PathUtils.validatePath(PathUtils.java:53) at org.apache.curator.utils.ZKPaths.getNodeFromPath(ZKPaths.java:56) at org.apache.curator.framework.recipes.leader.LeaderLatch.checkLeadership(LeaderLatch.java:421) at org.apache.curator.framework.recipes.leader.LeaderLatch.access$500(LeaderLatch.java:60) at org.apache.curator.framework.recipes.leader.LeaderLatch$6.processResult(LeaderLatch.java:478) at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:686) at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:485) at org.apache.curator.framework.imps.GetChildrenBuilderImpl$2.processResult(GetChildrenBuilderImpl.java:166) at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:587) at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:495)" it can be related to https://issues.apache.org/jira/browse/CURATOR-168. So I think the version of curator in spark should be 2.8. You can merge this pull request into a Git repository by running: $ git pull https://github.com/liu-zhaokun/spark master_curator Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/18108.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #18108 ---- commit fcf66eb0b9ca53dd604de49d9329092b5e5620b1 Author: liuzhaokun <liu.zhao...@zte.com.cn> Date: 2017-05-25T12:00:41Z [SPARK-20884] Spark' masters will be both standby due to the bug of curator ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org