[
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/[email protected]"
> 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