You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by Aditya exalter <ad...@gmail.com> on 2013/07/25 08:48:05 UTC

Zookeeper is not communicating

HI,

     while I run zkCli.sh -server 192.168.0.199:2181 where is ip
192.168.0.199 is one of my zookeeper quorum.

my logs are

client /127.0.0.1:41621 (no session established for client)
2013-07-25 12:13:05,767 [myid:1] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection
from /127.0.0.1:41625
2013-07-25 12:13:05,768 [myid:1] - WARN  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception causing close of
session 0x0 due to java.io.IOException: ZooKeeperServer not running
2013-07-25 12:13:05,768 [myid:1] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1001] - Closed socket connection for
client /127.0.0.1:41625 (no session established for client)
2013-07-25 12:13:06,539 [myid:1] - INFO  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection
from /127.0.0.1:41628
2013-07-25 12:13:06,789 [myid:1] - WARN  [NIOServerCxn.Factory:
0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception causing close of
session 0x0 due to java.io.IOException: ZooKeeperServer not running
 my zookeeper server is running.

Socket connection established to 192.168.0.104:2181, initiating session
2013-07-25 11:47:10,276 [myid:] - INFO  [main-SendThread(aditya.com:2181
):ClientCnxn$SendThread@1085] - Unable to read additional data from server
sessionid 0x0, likely server has closed socket, closing socket connection
and attempting reconnect


my zoo.cfg  is

maxClientCnxns=50
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=5
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=2
# the directory where the snapshot is stored.
dataDir=/var/lib/zookeeper
# the port at which the clients will connect
clientPort=2181
server.1=192.168.0.104:2888:3888
server.2=192.168.0.116:2888:3888
server.3=192.168.0.199:2888:3888

Please look into the issue.

Thanks & regards,
Aditya K.

Re: Zookeeper is not communicating

Posted by Patrick Hunt <ph...@apache.org>.
Hi Aditya, it's likely that your ZK quorum has not formed correctly
"ZooKeeperServer not running" (at least 2 of the 3 servers need to be
talking). Try using the four letter words to verify (srvr).
http://zookeeper.apache.org/doc/r3.4.5/zookeeperAdmin.html#sc_zkCommands

Check the zk server logs for more details on whether the quorum can
form and why not.

Patrick

On Wed, Jul 24, 2013 at 11:48 PM, Aditya exalter
<ad...@gmail.com> wrote:
> HI,
>
>      while I run zkCli.sh -server 192.168.0.199:2181 where is ip
> 192.168.0.199 is one of my zookeeper quorum.
>
> my logs are
>
> client /127.0.0.1:41621 (no session established for client)
> 2013-07-25 12:13:05,767 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] -
> Accepted socket connection from /127.0.0.1:41625
> 2013-07-25 12:13:05,768 [myid:1] - WARN
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception
> causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not
> running
> 2013-07-25 12:13:05,768 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1001] - Closed
> socket connection for client /127.0.0.1:41625 (no session established for
> client)
> 2013-07-25 12:13:06,539 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] -
> Accepted socket connection from /127.0.0.1:41628
> 2013-07-25 12:13:06,789 [myid:1] - WARN
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception
> causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not
> running
>  my zookeeper server is running.
>
> Socket connection established to 192.168.0.104:2181, initiating session
> 2013-07-25 11:47:10,276 [myid:] - INFO
> [main-SendThread(aditya.com:2181):ClientCnxn$SendThread@1085] - Unable to
> read additional data from server sessionid 0x0, likely server has closed
> socket, closing socket connection and attempting reconnect
>
>
> my zoo.cfg  is
>
> maxClientCnxns=50
> # The number of milliseconds of each tick
> tickTime=2000
> # The number of ticks that the initial
> # synchronization phase can take
> initLimit=5
> # The number of ticks that can pass between
> # sending a request and getting an acknowledgement
> syncLimit=2
> # the directory where the snapshot is stored.
> dataDir=/var/lib/zookeeper
> # the port at which the clients will connect
> clientPort=2181
> server.1=192.168.0.104:2888:3888
> server.2=192.168.0.116:2888:3888
> server.3=192.168.0.199:2888:3888
>
> Please look into the issue.
>
> Thanks & regards,
> Aditya K.

Re: Zookeeper is not communicating

Posted by Patrick Hunt <ph...@apache.org>.
Hi Aditya, it's likely that your ZK quorum has not formed correctly
"ZooKeeperServer not running" (at least 2 of the 3 servers need to be
talking). Try using the four letter words to verify (srvr).
http://zookeeper.apache.org/doc/r3.4.5/zookeeperAdmin.html#sc_zkCommands

Check the zk server logs for more details on whether the quorum can
form and why not.

Patrick

On Wed, Jul 24, 2013 at 11:48 PM, Aditya exalter
<ad...@gmail.com> wrote:
> HI,
>
>      while I run zkCli.sh -server 192.168.0.199:2181 where is ip
> 192.168.0.199 is one of my zookeeper quorum.
>
> my logs are
>
> client /127.0.0.1:41621 (no session established for client)
> 2013-07-25 12:13:05,767 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] -
> Accepted socket connection from /127.0.0.1:41625
> 2013-07-25 12:13:05,768 [myid:1] - WARN
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception
> causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not
> running
> 2013-07-25 12:13:05,768 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1001] - Closed
> socket connection for client /127.0.0.1:41625 (no session established for
> client)
> 2013-07-25 12:13:06,539 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] -
> Accepted socket connection from /127.0.0.1:41628
> 2013-07-25 12:13:06,789 [myid:1] - WARN
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception
> causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not
> running
>  my zookeeper server is running.
>
> Socket connection established to 192.168.0.104:2181, initiating session
> 2013-07-25 11:47:10,276 [myid:] - INFO
> [main-SendThread(aditya.com:2181):ClientCnxn$SendThread@1085] - Unable to
> read additional data from server sessionid 0x0, likely server has closed
> socket, closing socket connection and attempting reconnect
>
>
> my zoo.cfg  is
>
> maxClientCnxns=50
> # The number of milliseconds of each tick
> tickTime=2000
> # The number of ticks that the initial
> # synchronization phase can take
> initLimit=5
> # The number of ticks that can pass between
> # sending a request and getting an acknowledgement
> syncLimit=2
> # the directory where the snapshot is stored.
> dataDir=/var/lib/zookeeper
> # the port at which the clients will connect
> clientPort=2181
> server.1=192.168.0.104:2888:3888
> server.2=192.168.0.116:2888:3888
> server.3=192.168.0.199:2888:3888
>
> Please look into the issue.
>
> Thanks & regards,
> Aditya K.

Re: Zookeeper is not communicating

Posted by Patrick Hunt <ph...@apache.org>.
Hi Aditya, it's likely that your ZK quorum has not formed correctly
"ZooKeeperServer not running" (at least 2 of the 3 servers need to be
talking). Try using the four letter words to verify (srvr).
http://zookeeper.apache.org/doc/r3.4.5/zookeeperAdmin.html#sc_zkCommands

Check the zk server logs for more details on whether the quorum can
form and why not.

Patrick

On Wed, Jul 24, 2013 at 11:48 PM, Aditya exalter
<ad...@gmail.com> wrote:
> HI,
>
>      while I run zkCli.sh -server 192.168.0.199:2181 where is ip
> 192.168.0.199 is one of my zookeeper quorum.
>
> my logs are
>
> client /127.0.0.1:41621 (no session established for client)
> 2013-07-25 12:13:05,767 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] -
> Accepted socket connection from /127.0.0.1:41625
> 2013-07-25 12:13:05,768 [myid:1] - WARN
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception
> causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not
> running
> 2013-07-25 12:13:05,768 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1001] - Closed
> socket connection for client /127.0.0.1:41625 (no session established for
> client)
> 2013-07-25 12:13:06,539 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] -
> Accepted socket connection from /127.0.0.1:41628
> 2013-07-25 12:13:06,789 [myid:1] - WARN
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception
> causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not
> running
>  my zookeeper server is running.
>
> Socket connection established to 192.168.0.104:2181, initiating session
> 2013-07-25 11:47:10,276 [myid:] - INFO
> [main-SendThread(aditya.com:2181):ClientCnxn$SendThread@1085] - Unable to
> read additional data from server sessionid 0x0, likely server has closed
> socket, closing socket connection and attempting reconnect
>
>
> my zoo.cfg  is
>
> maxClientCnxns=50
> # The number of milliseconds of each tick
> tickTime=2000
> # The number of ticks that the initial
> # synchronization phase can take
> initLimit=5
> # The number of ticks that can pass between
> # sending a request and getting an acknowledgement
> syncLimit=2
> # the directory where the snapshot is stored.
> dataDir=/var/lib/zookeeper
> # the port at which the clients will connect
> clientPort=2181
> server.1=192.168.0.104:2888:3888
> server.2=192.168.0.116:2888:3888
> server.3=192.168.0.199:2888:3888
>
> Please look into the issue.
>
> Thanks & regards,
> Aditya K.

Re: Zookeeper is not communicating

Posted by Patrick Hunt <ph...@apache.org>.
Hi Aditya, it's likely that your ZK quorum has not formed correctly
"ZooKeeperServer not running" (at least 2 of the 3 servers need to be
talking). Try using the four letter words to verify (srvr).
http://zookeeper.apache.org/doc/r3.4.5/zookeeperAdmin.html#sc_zkCommands

Check the zk server logs for more details on whether the quorum can
form and why not.

Patrick

On Wed, Jul 24, 2013 at 11:48 PM, Aditya exalter
<ad...@gmail.com> wrote:
> HI,
>
>      while I run zkCli.sh -server 192.168.0.199:2181 where is ip
> 192.168.0.199 is one of my zookeeper quorum.
>
> my logs are
>
> client /127.0.0.1:41621 (no session established for client)
> 2013-07-25 12:13:05,767 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] -
> Accepted socket connection from /127.0.0.1:41625
> 2013-07-25 12:13:05,768 [myid:1] - WARN
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception
> causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not
> running
> 2013-07-25 12:13:05,768 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1001] - Closed
> socket connection for client /127.0.0.1:41625 (no session established for
> client)
> 2013-07-25 12:13:06,539 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] -
> Accepted socket connection from /127.0.0.1:41628
> 2013-07-25 12:13:06,789 [myid:1] - WARN
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception
> causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not
> running
>  my zookeeper server is running.
>
> Socket connection established to 192.168.0.104:2181, initiating session
> 2013-07-25 11:47:10,276 [myid:] - INFO
> [main-SendThread(aditya.com:2181):ClientCnxn$SendThread@1085] - Unable to
> read additional data from server sessionid 0x0, likely server has closed
> socket, closing socket connection and attempting reconnect
>
>
> my zoo.cfg  is
>
> maxClientCnxns=50
> # The number of milliseconds of each tick
> tickTime=2000
> # The number of ticks that the initial
> # synchronization phase can take
> initLimit=5
> # The number of ticks that can pass between
> # sending a request and getting an acknowledgement
> syncLimit=2
> # the directory where the snapshot is stored.
> dataDir=/var/lib/zookeeper
> # the port at which the clients will connect
> clientPort=2181
> server.1=192.168.0.104:2888:3888
> server.2=192.168.0.116:2888:3888
> server.3=192.168.0.199:2888:3888
>
> Please look into the issue.
>
> Thanks & regards,
> Aditya K.