[ 
https://issues.apache.org/jira/browse/KUDU-3415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17734239#comment-17734239
 ] 

YUBI LEE commented on KUDU-3415:
--------------------------------

I think this issue is caused by ``connectToMasters()`` method. 
([https://github.com/apache/kudu/blob/1.16.0/java/kudu-client/src/main/java/org/apache/kudu/client/ConnectToCluster.java#L175)]

In this method, kudu master hostnames are converted into ip. If desired 
hostname is not resolved from ip, this issue occurs.

> Kerberos authentication fails with rdns disabled
> ------------------------------------------------
>
>                 Key: KUDU-3415
>                 URL: https://issues.apache.org/jira/browse/KUDU-3415
>             Project: Kudu
>          Issue Type: Bug
>          Components: client
>            Reporter: Abhishek Rawat
>            Assignee: Marton Greber
>            Priority: Major
>
> Kudu Java client doesn't retain the original hostname and replaces them with 
> the resolved IPAddress in the kerberos principal. This results in error such 
> as following:
> {code:java}
>          error Message is Server not found in Kerberos database
>          cTime is Sat Jul 28 22:29:26 UTC 2018 1532816966000
>          sTime is Thu Oct 27 00:35:03 UTC 2022 1666830903000
>          suSec is 129588
>          error code is 7
>          crealm is CDW-KUDU.XCU2-8Y8X.DEV.CLDR.WORK
>          error Message is Server not found in Kerberos database
>          crealm is CDW-KUDU.XCU2-8Y8X.DEV.CLDR.WORK
>          cname is 
> hive/impala-1666798978-f8x7....@cdw-kudu.xcu2-8y8x.dev.cldr.work
>          sname is kudu/10.80.205....@cdw-kudu.xcu2-8y8x.dev.cldr.work
>          msgType is 30
>          cname is 
> hive/impala-1666798978-f8x7....@cdw-kudu.xcu2-8y8x.dev.cldr.work
>          sname is kudu/10.80.194....@cdw-kudu.xcu2-8y8x.dev.cldr.work
>          msgType is 30
> KrbException: Server not found in Kerberos database (7) - LOOKING_UP_SERVER 
> {code}
>  [~aserbin] suggested this might require the fix done on cpp client side in 
> KUDU-2032 to be extended to Java client also.



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

Reply via email to