[ 
https://issues.apache.org/jira/browse/HIVE-27147?focusedWorklogId=851840&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-851840
 ]

ASF GitHub Bot logged work on HIVE-27147:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Mar/23 18:20
            Start Date: 20/Mar/23 18:20
    Worklog Time Spent: 10m 
      Work Description: 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




Issue Time Tracking
-------------------

            Worklog Id:     (was: 851840)
    Remaining Estimate: 0h
            Time Spent: 10m

> HS2 is not accessible to clients via zookeeper when hostname used is not FQDN
> -----------------------------------------------------------------------------
>
>                 Key: HIVE-27147
>                 URL: https://issues.apache.org/jira/browse/HIVE-27147
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Venugopal Reddy K
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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 - 
> [https://stackoverflow.com/questions/61898627/inetaddress-getlocalhost-gethostname-different-behavior-between-jdk-11-and-j|http://example.com/]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to