From issues-return-323-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Wed Jul 10 04:48:03 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 D63E0180675 for ; Wed, 10 Jul 2019 06:48:02 +0200 (CEST) Received: (qmail 71845 invoked by uid 500); 10 Jul 2019 04:48:02 -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 71564 invoked by uid 99); 10 Jul 2019 04:48: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; Wed, 10 Jul 2019 04:48: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 CAFCBE2EC3 for ; Wed, 10 Jul 2019 04:48: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 7CDBB2657C for ; Wed, 10 Jul 2019 04:48:00 +0000 (UTC) Date: Wed, 10 Jul 2019 04:48:00 +0000 (UTC) From: "Marzieh (JIRA)" To: issues@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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 [ https://issues.apache.org/jira/browse/ZOOKEEPER-3456?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 16881724#comment-16881724 ]=20 Marzieh commented on ZOOKEEPER-3456: ------------------------------------ Dear Maoling =C2=A0 I can=C2=A0connect to all server using=C2=A0ssh. Is that enough? =C2=A0 > Service temporarily unavailable due to an ongoing leader 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 > Priority: Major > 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, = when I entered IP of my two slaves, just one slave shew Flink UI and anothe= r slave shew this error: > =C2=A0 > Service temporarily unavailable due to an ongoing leader election. Please= refresh > I checked "zookeeper.out" file and it said that : > =C2=A0 > 019-07-07 11:48:43,412 [myid:] - INFO [main:QuorumPeerConfig@136] - Readi= ng 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-= optimial configuration, consider an odd number of servers. > 2019-07-07 11:48:43,422 [myid:] - INFO [main:QuorumPeerConfig@398] - Defa= ulting to majority quorums > 2019-07-07 11:48:43,425 [myid:3] - INFO [main:DatadirCleanupManager@78] -= autopurge.snapRetainCount set to 3 > 2019-07-07 11:48:43,425 [myid:3] - INFO [main:DatadirCleanupManager@79] -= autopurge.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] - Start= ing quorum peer > 2019-07-07 11:48:43,437 [myid:3] - INFO [main:ServerCnxnFactory@117] - Us= ing org.apache.zookeeper.server.NIOServerCnxnFactory as server connect$ > 2019-07-07 11:48:43,439 [myid:3] - INFO [main:NIOServerCnxnFactory@89] - = binding to port 0.0.0.0/0.0.0.0:2181 > 2019-07-07 11:48:43,440 [myid:3] - ERROR [main:QuorumPeerMain@92] - Unexp= ected 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:= 223) > 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(NIOServerC= nxnFactory.java:90) > at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(Quoru= mPeerMain.java:133) > at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(Qu= orumPeerMain.java:114) > at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain= .java:81) > =C2=A0 > I searched a lot and could not find the solution. -- This message was sent by Atlassian JIRA (v7.6.3#76005)