Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1942 | 06-15-2020 05:23 AM | |
| 15734 | 01-30-2020 08:04 PM | |
| 2087 | 07-07-2019 09:06 PM | |
| 8152 | 01-27-2018 10:17 PM | |
| 4627 | 12-31-2017 10:12 PM |
01-01-2019
04:49 PM
yes we have resolving of all master1/2/3 names and also ip's , we checked that with host command
... View more
01-01-2019
04:47 PM
@Geoffrey Shelton Okot we are using DNS serve , so all entries of hostnames and ip's in the DNS server
... View more
01-01-2019
03:03 PM
Geoffrey as you can see the hosts seems to be fine
... View more
01-01-2019
02:49 PM
[root@master1 hdp]# more /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@master2 more /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@master3 ~]# more /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
... View more
01-01-2019
01:35 PM
no even we use IP its not works
... View more
01-01-2019
12:11 PM
@Geoffrey Shelton Okot , yes this is the same problem , but with different aspect , we checked the /etc/hosts , and file is OK , FW is disable anyway , we can use IP instead localhost as the following: /usr/hdp/current/zookeeper-client/bin/zookeeper-client -server SOME_IP:2181
... View more
01-01-2019
11:54 AM
by the way , if we restart the zookeper , then open connections are less then ,maxClientCnxns and we still get CONNECTING , this mean zookeper client cant connect to zookeper server
... View more
01-01-2019
11:32 AM
we already do all this steps , if we increase the axClientCnxns=500 or to 5000, then after some time all ports are in used and we get CLOSE_WAIT so increasing it isn't solution , and from the log we not see hint about - why zookper clinet not connect zookper server
... View more
01-01-2019
07:48 AM
hi
all In
my HDP cluster, I install 3 zookeeper-servers and zookeeper client on 3 nodes (
master1 , master2 , master3 ) ,. all nodes are on redhat machine version 7.2 When we run the zookeeper-client from master1 on the
zookeeper server on master1 , we get CONNECTING When we run the zookeeper-client from master1 on the
zookeeper server on master2 , we get CONNECTED When we run the zookeeper-client from master1 on the
zookeeper server on master3 , we get CONNECTED Examples [root@master1 ~]# /usr/hdp/current/zookeeper-client/bin/zookeeper-client -server master1:2181
Connecting to master1:2181
Welcome to ZooKeeper!
JLine support is enabled
[zk: master1:2181(CONNECTING) 0] <-- we get CONNECTING instead to get CONNECTED
[root@master1 ~]# /usr/hdp/current/zookeeper-client/bin/zookeeper-client -server master2:2181
Connecting to master2:2181
Welcome to ZooKeeper!
JLine support is enabled
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
[zk: master2:2181(CONNECTED) 0]
[root@master1 ~]# /usr/hdp/current/zookeeper-client/bin/zookeeper-client -server master3:2181
Connecting to master3:2181
Welcome to ZooKeeper!
JLine support is enabled
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
[zk: master3:2181(CONNECTED) 0]
so problem is only on master1 machine , and actually client cant connected to the zookeeper server on machine - master1 What could be the reason for that? more /etc/zookeeper/2.6.4.0-91/0/zoo.cfg
clientPort=2181
syncLimit=15
autopurge.purgeInterval=24
maxClientCnxns=60
dataDir=/var/hadoop/zookeeper
initLimit=30
tickTime=2000
autopurge.snapRetainCount=30
server.1=master1.sys89.com:2888:3888
server.2=master2.sys89.com:2888:3888
server.3=master3.sys89.com:2888:3888
cat /usr/hdp/current/zookeeper-client/bin/zookeeper-client
#!/bin/bash
export ZOOKEEPER_HOME=/usr/hdp/2.6.4.0-91//zookeeper
export ZOOKEEPER_CONF=${ZOOKEEPER_HOME}/conf
export CLASSPATH=$CLASSPATH:$ZOOKEEPER_CONF:$ZOOKEEPER_HOME/*:$ZOOKEEPER_HOME/lib/*
export ZOOCFGDIR=${ZOOCFGDIR:-$ZOOKEEPER_CONF}
env CLASSPATH=$CLASSPATH ${ZOOKEEPER_HOME}/bin/zkCli.sh "$@"
we check the port 2181 and we get ok status
telnet localhost 2181
Trying ::1
Connected to localhost.
Escape character is '^]'.
... View more
Labels:
12-31-2018
06:14 PM
we noticed about the following: /usr/hdp/2.6.4.0-91/zookeeper/bin/zkCli.sh
Connecting to localhost:2181
Welcome to ZooKeeper!
JLine support is enabled
[zk: localhost:2181(CONNECTING) 0] <-- this should be connected not CONNECTING
... View more