hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Francke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-7107) Clean up HiveDrivers and fix an issue
Date Tue, 29 Jul 2014 23:12:38 GMT

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

Lars Francke commented on HIVE-7107:
------------------------------------

https://reviews.apache.org/r/24076/

I realize that HS1 is scheduled to be removed but I submitted this before 0.13.1 was released
and maybe 0.13.2 will be released still. Also I think there's a chance that some distributions
will keep HS1 in for a bit longer and this patch fixes an issue with it. I also don't see
any harm in maintaining code that's scheduled to be removed at some point.

> Clean up HiveDrivers and fix an issue
> -------------------------------------
>
>                 Key: HIVE-7107
>                 URL: https://issues.apache.org/jira/browse/HIVE-7107
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Lars Francke
>            Assignee: Lars Francke
>            Priority: Minor
>         Attachments: HIVE-7107.2.patch
>
>
> The HiveServer1 driver does not adhere to the JDBC standard of returning null when it
can't handle a connection URL. It instead throws an exception which leads to subsequent exceptions
(from other drivers, i.e. the HiveServer2 one) being swallowed.
> This is what you'd see:
> {quote}
> Error: Invalid URL: jdbc:hive2://localhost:10000/default;principal=hive/_HOST@EXAMPLE.COM
(state=08S01,code=0)
> java.sql.SQLException: Invalid URL: jdbc:hive2://localhost:10000/default;principal=hive/_HOST@EXAMPLE.COM
> 	at org.apache.hadoop.hive.jdbc.HiveConnection.<init>(HiveConnection.java:86)
> {quote}
> In addition this patch cleans up the drivers a bit.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message