[
https://issues.apache.org/jira/browse/HIVE-21507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16802096#comment-16802096
]
Hive QA commented on HIVE-21507:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12963744/HIVE-21507.003.patch
{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.
{color:green}SUCCESS:{color} +1 due to 15842 tests passed
Test results:
https://builds.apache.org/job/PreCommit-HIVE-Build/16693/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/16693/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-16693/
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12963744 - PreCommit-HIVE-Build
> Hive swallows NPE if no delegation token found
> ----------------------------------------------
>
> Key: HIVE-21507
> URL: https://issues.apache.org/jira/browse/HIVE-21507
> Project: Hive
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 3.1.1
> Reporter: Denes Bodo
> Assignee: Denes Bodo
> Priority: Critical
> Labels: usability
> Attachments: HIVE-21507.001.patch, HIVE-21507.002.patch,
> HIVE-21507.003.patch
>
>
> In case if there is no delegation token put into token file, this
> [line|https://github.com/apache/hive/blob/master/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java#L777]
> will cause a NullPointerException which is not handled and the user is not
> notified in any way.
> To cause NPE the use case is to have an Oozie Sqoop import to Hive in a
> kerberized cluster. Oozie puts the delegation token into the token file with
> id: *HIVE_DELEGATION_TOKEN_hiveserver2ClientToken*. So with id *hive* it is
> not working. However, fallback code uses the key which Oozie provides
> [this|https://github.com/apache/hive/blob/master/jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java#L784]
> way.
> I suggest to have warning message to user that key with id *hive* cannot be
> used and falling back to get delegation token from the session.
> I am creating the patch.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)