![]() ![]() # Exact paths may vary according to your setup # This script extracts the number out of the pod's hostname and sets it as zookeepers id. To automate things in the cluster, I wrote a bash script that will replace the one "own" entry on container startup.ĮDIT: As asked in the comments, here is my ENTRYPOINT script that takes care of placing the myid file and setting the appropriate hostname for each zoo.cfg: #!/bin/bash Since the provided hostname will resolve to 127.0.0.1 on this machine, ZooKeeper will listen on the local loopback interface and therefore does not accept connections from the other ZooKeeper servers. It then uses this entry to determine which port and interface to listen on. ZooKeeper reads the list of servers in the ensemble on startup and looks for its "own" entry. ![]() I found a working solution for this issue. zookeeper-2.zookeeper-headless) is available from other pods through nslookup. What could be the cause? I verified that the hostname (e.g. : zookeeper-2.zookeeper-headless: No address associated with hostnameĪt (Native Method)Īt $2.lookupAllHostAddr(InetAddress.java:928)Īt (InetAddress.java:1323)Īt 0(InetAddress.java:1276)Īt (InetAddress.java:1192)Īt (InetAddress.java:1126)Īt (InetAddress.java:1076)Īt .quorum.QuorumPeer$QuorumServer.recreateSocketAddresses(QuorumPeer.java:148)Īt .quorum.QuorumPeer$QuorumServer.(QuorumPeer.java:133)Īt .(QuorumPeerConfig.java:228)Īt .(QuorumPeerConfig.java:140)Īt .(QuorumPeerMain.java:101)Īt .(QuorumPeerMain.java:78) OpenShift logs show UnknownHostExceptions, though: 10:59:18,289 - WARN - Failed to resolve address: zookeeper-2.zookeeper-headless Relevant parts of my OpenShift / Kubernetes configuration: # StatefulSet I verified hostnames are indeed resolvable using nslookup inside my cluster. ![]() Select all groups of emails that you would like to automatically delete once they become older than the age you selected. I configured three servers in my zoo.cfg by hostname, but on startup, hostname resolution fails. Select Inbox from the left pane and tell Clean Email to display emails that are older than a certain age using the filter next to the search box. I have setup zookeeper as a StatefulSet in order to reliably persist config data. I am running Zookeeper in an OpenShift/Kubernetes environment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |