[
https://issues.apache.org/jira/browse/HIVE-29273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shohei Okumiya resolved HIVE-29273.
-----------------------------------
Fix Version/s: 4.2.0
Resolution: Fixed
Merged. [~tanishqchugh] Thanks for your contribution!
https://github.com/apache/hive/pull/6137
> Default port appended should respect transport mode when host is specified
> without port
> ---------------------------------------------------------------------------------------
>
> Key: HIVE-29273
> URL: https://issues.apache.org/jira/browse/HIVE-29273
> Project: Hive
> Issue Type: Bug
> Reporter: tanishqchugh
> Assignee: tanishqchugh
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.2.0
>
>
> As of now, when the port is not specified in the JDBC URI, 1000 gets appended
> by default irrespective of transport mode being binary/http.
> When HS2 is running in http mode and user tries to connect without specifying
> the port explicitly, it tries to connect to port 10000, running into error
> Sample error:
> {code:java}
> Error: Could not open client transport with JDBC Uri:
> jdbc:hive2://localhost:10000/default;transportMode=http;httpPath=cliservice:
> Could not establish connection to
> jdbc:hive2://localhost:10000/default;transportMode=http;httpPath=cliservice:
> org.apache.http.conn.HttpHostConnectException: Connect to localhost:10000
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)