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

Denes Bodo commented on HIVE-21573:
-----------------------------------

Thanks [~daijy] for noticing. Indeed, first I did not manage to swap the 
if/else blocks properly so it resulted not the same functionality. Please check 
the fixed .4 version. Thanks.

> Binary transport shall ignore principal if auth is set to delegationToken
> -------------------------------------------------------------------------
>
>                 Key: HIVE-21573
>                 URL: https://issues.apache.org/jira/browse/HIVE-21573
>             Project: Hive
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 3.0.0
>            Reporter: Denes Bodo
>            Assignee: Denes Bodo
>            Priority: Critical
>         Attachments: HIVE-21573.3.patch, HIVE-21573.4.patch
>
>
> When Beeline is used by Sqoop from Oozie sqoop action in a kerberized 
> cluster, Sqoop passes Hive delegation token to Beeline when invokes the 
> *beeline* command. Unfortunately, Beeline puts principal=XY parameter to JDBC 
> url so when binary transport is needed it will use principal based 
> authentication instead of token based.
> Related code: 
> [https://github.com/apache/hive/blob/master/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java#L688L705]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to