[ https://issues.apache.org/jira/browse/FLINK-6953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Viliam Durina updated FLINK-6953: --------------------------------- Description: While trying to setup HA for JobManager, I configured the following: {{high-availability.zookeeper.quorum: 10.0.0.179:2181, 10.0.0.176:2181}} However, I got: {{java.net.UnknownHostException: 10.0.0.176: Name or service not known at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) at java.net.InetAddress.getAllByName0(InetAddress.java:1276) at java.net.InetAddress.getAllByName(InetAddress.java:1192) at java.net.InetAddress.getAllByName(InetAddress.java:1126) at org.apache.zookeeper.client.StaticHostProvider.<init>(StaticHostProvider.java:61) at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:445) at org.apache.flink.shaded.org.apache.curator.utils.DefaultZookeeperFactory.newZooKeeper(DefaultZookeeperFactory.java:29) ...}} The IP address was obviously available. The problem was the space after the comma. I suggest to add some checks or, better, ignore the space, as this is a real pain to spot. Using the space also makes the line more readable, and there is also space after the colon, which I guess is optional. was: While trying to setup HA for JobManager, I configured the following: {{high-availability.zookeeper.quorum: 10.0.0.179:2181, 10.0.0.176:2181}} However, I got: {{java.net.UnknownHostException: 10.0.0.176: Name or service not known at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) at java.net.InetAddress.getAllByName0(InetAddress.java:1276) at java.net.InetAddress.getAllByName(InetAddress.java:1192) at java.net.InetAddress.getAllByName(InetAddress.java:1126) at org.apache.zookeeper.client.StaticHostProvider.<init>(StaticHostProvider.java:61) at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:445) at org.apache.flink.shaded.org.apache.curator.utils.DefaultZookeeperFactory.newZooKeeper(DefaultZookeeperFactory.java:29) ...}} Even though the IP address was available. The problem was the space after the comma. I suggest to add some checks or, better, ignore the space, as this is a real pain to spot. Using the space also makes the line more readable, and there is also space after the colon, which I guess is optional. > Ignore space after comman in "high-availability.zookeeper.quorum" > ----------------------------------------------------------------- > > Key: FLINK-6953 > URL: https://issues.apache.org/jira/browse/FLINK-6953 > Project: Flink > Issue Type: Improvement > Components: Cluster Management, JobManager > Affects Versions: 1.3.0 > Environment: Linux > Reporter: Viliam Durina > Priority: Minor > > While trying to setup HA for JobManager, I configured the following: > {{high-availability.zookeeper.quorum: 10.0.0.179:2181, 10.0.0.176:2181}} > However, I got: > {{java.net.UnknownHostException: 10.0.0.176: Name or service not known > at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) > at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) > at > java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) > at java.net.InetAddress.getAllByName0(InetAddress.java:1276) > at java.net.InetAddress.getAllByName(InetAddress.java:1192) > at java.net.InetAddress.getAllByName(InetAddress.java:1126) > at > org.apache.zookeeper.client.StaticHostProvider.<init>(StaticHostProvider.java:61) > at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:445) > at > org.apache.flink.shaded.org.apache.curator.utils.DefaultZookeeperFactory.newZooKeeper(DefaultZookeeperFactory.java:29) > ...}} > The IP address was obviously available. The problem was the space after the > comma. I suggest to add some checks or, better, ignore the space, as this is > a real pain to spot. Using the space also makes the line more readable, and > there is also space after the colon, which I guess is optional. -- This message was sent by Atlassian JIRA (v6.4.14#64029)