hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-4802) Fix url check for missing "/" or "/<db> after hostname in jdb uri
Date Tue, 02 Jul 2013 00:40:21 GMT

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

Thejas M Nair commented on HIVE-4802:
-------------------------------------

The root cause for the issue that when session variable part of the hs2 jdbc url does not
have "/" before it, it gets parsed as authority, but the host is null. The hostname should
not be null for valid urls if the authority part of url is present.

                
> Fix url check for missing "/" or "/<db> after hostname in jdb uri
> -----------------------------------------------------------------
>
>                 Key: HIVE-4802
>                 URL: https://issues.apache.org/jira/browse/HIVE-4802
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2, JDBC
>    Affects Versions: 0.12.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>             Fix For: 0.12.0
>
>
> HIVE-4406 added a check for jdbc uri to prevent unintentional use of embedded mode. But
that does not correctly check for uri like "jdbc:hive2://localhost:10000;principal=hive/HiveServer2Host@YOUR-REALM.COM"
that can also result in embedded mode being used.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message