From issues-return-289-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Sun Jul 7 11:56:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 82A34180675 for ; Sun, 7 Jul 2019 13:56:02 +0200 (CEST) Received: (qmail 20342 invoked by uid 500); 7 Jul 2019 11:56:01 -0000 Mailing-List: contact issues-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list issues@zookeeper.apache.org Received: (qmail 20166 invoked by uid 99); 7 Jul 2019 11:56:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jul 2019 11:56:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4E826E00EA for ; Sun, 7 Jul 2019 11:56:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0AF8B26553 for ; Sun, 7 Jul 2019 11:56:00 +0000 (UTC) Date: Sun, 7 Jul 2019 11:56:00 +0000 (UTC) From: "Marzieh (JIRA)" To: issues@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ZOOKEEPER-3456) Service temporarily unavailable due to an ongoing leader election. Please refresh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Marzieh created ZOOKEEPER-3456: ---------------------------------- Summary: Service temporarily unavailable due to an ongoing lea= der election. Please refresh Key: ZOOKEEPER-3456 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3456 Project: ZooKeeper Issue Type: Bug Components: server Environment: docker container with Ubuntu 16.04 Reporter: Marzieh Fix For: 3.4.14 Hi I configured Zookeeper with four nodes for my Mesos cluster with Marathon. = When I ran Flink Json file on Marathon, it was run without problem. But, wh= en I entered IP of my two slaves, just one slave shew Flink UI and another = slave shew this error: =C2=A0 Service temporarily unavailable due to an ongoing leader election. Please r= efresh I checked "zookeeper.out" file and it said that : =C2=A0 019-07-07 11:48:43,412 [myid:] - INFO [main:QuorumPeerConfig@136] - Reading= configuration from: /home/zookeeper-3.4.14/bin/../conf/zoo.cfg 2019-07-07 11:48:43,421 [myid:] - INFO [main:QuorumPeer$QuorumServer@185] -= Resolved hostname: 0.0.0.0 to address: /0.0.0.0 2019-07-07 11:48:43,421 [myid:] - INFO [main:QuorumPeer$QuorumServer@185] -= Resolved hostname: 10.32.0.3 to address: /10.32.0.3 2019-07-07 11:48:43,422 [myid:] - INFO [main:QuorumPeer$QuorumServer@185] -= Resolved hostname: 10.32.0.2 to address: /10.32.0.2 2019-07-07 11:48:43,422 [myid:] - INFO [main:QuorumPeer$QuorumServer@185] -= Resolved hostname: 10.32.0.5 to address: /10.32.0.5 2019-07-07 11:48:43,422 [myid:] - WARN [main:QuorumPeerConfig@354] - Non-op= timial configuration, consider an odd number of servers. 2019-07-07 11:48:43,422 [myid:] - INFO [main:QuorumPeerConfig@398] - Defaul= ting to majority quorums 2019-07-07 11:48:43,425 [myid:3] - INFO [main:DatadirCleanupManager@78] - a= utopurge.snapRetainCount set to 3 2019-07-07 11:48:43,425 [myid:3] - INFO [main:DatadirCleanupManager@79] - a= utopurge.purgeInterval set to 0 2019-07-07 11:48:43,425 [myid:3] - INFO [main:DatadirCleanupManager@101] - = Purge task is not scheduled. 2019-07-07 11:48:43,432 [myid:3] - INFO [main:QuorumPeerMain@130] - Startin= g quorum peer 2019-07-07 11:48:43,437 [myid:3] - INFO [main:ServerCnxnFactory@117] - Usin= g org.apache.zookeeper.server.NIOServerCnxnFactory as server connect$ 2019-07-07 11:48:43,439 [myid:3] - INFO [main:NIOServerCnxnFactory@89] - bi= nding to port 0.0.0.0/0.0.0.0:2181 2019-07-07 11:48:43,440 [myid:3] - ERROR [main:QuorumPeerMain@92] - Unexpec= ted exception, exiting abnormally java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.Net.bind(Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:22= 3) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67) at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnx= nFactory.java:90) at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumP= eerMain.java:133) at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(Quor= umPeerMain.java:114) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.j= ava:81) =C2=A0 I searched a lot and could not find the solution. -- This message was sent by Atlassian JIRA (v7.6.3#76005)