VenuReddy2103 opened a new pull request, #4130: URL: https://github.com/apache/hive/pull/4130
### What changes were proposed in this pull request? Use `InetAddress.getCanonicalHostName()` method instead of `InetAddress.getHostName()` while registering HS2 and HMS instances to zookeeper. ### Why are the changes needed? HS2 is not accessible to clients via zookeeper when hostname used during registration is InetAddress.getHostName() with JDK 11. This issue is happening due to change in behavior on JDK 11 and it is OS specific. Below link has more information - [https://stackoverflow.com/questions/61898627/inetaddress-getlocalhost-gethostname-different-behavior-between-jdk-11-and-j](https://stackoverflow.com/questions/61898627/inetaddress-getlocalhost-gethostname-different-behavior-between-jdk-11-and-j) ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Verified with zookeeper in the cluster -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org