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

Zhihua Deng commented on HIVE-27487:
------------------------------------

When failed to register the remote Hive table, it's hard to identify what was 
causing it by the given message, propagate the detail exception message to the 
front to help diagnose the problem.

Tested the PR on both secure(Kerberos based) and unsecure HS2:
    a. Unsecure HS2 can't connect to Kerberos based HS2;
    b. Kerberos based HS2 can connect to both unsecure HS2 and Kerberos based 
HS2;

The PR can query the remote table with no NPE.

> NPE in Hive JDBC storage handler
> --------------------------------
>
>                 Key: HIVE-27487
>                 URL: https://issues.apache.org/jira/browse/HIVE-27487
>             Project: Hive
>          Issue Type: Bug
>          Components: JDBC storage handler
>            Reporter: Zhihua Deng
>            Assignee: Zhihua Deng
>            Priority: Major
>              Labels: pull-request-available
>
> A simple query against a Hive JDBC table: "select * from sample_nightly" 
> would fail due to:
> {noformat}
>  Caused by: java.lang.NullPointerException
>     at org.apache.hive.storage.jdbc.JdbcSerDe.deserialize(JdbcSerDe.java:168)
>     at 
> org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:623)
>     ... 21 more{noformat}



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

Reply via email to