Skip to content

Commit

Permalink
[KYUUBI #6346] Change Kyuubi JDBC Driver default port and make it eff…
Browse files Browse the repository at this point in the history
…ective
  • Loading branch information
wForget committed Apr 29, 2024
1 parent 5cbbdc3 commit 0a30852
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class Utils {
Arrays.asList("jdbc:hive2://", "jdbc:kyuubi://");

/** If host is provided, without a port. */
static final String DEFAULT_PORT = "10000";
static final String DEFAULT_PORT = "10009";
// To parse the intermediate URI as a Java URI, we'll give a dummy authority(dummyhost:00000).
// Later, we'll substitute the dummy authority for a resolved authority.
static final String dummyAuthorityString = "dummyhost:00000";
Expand Down Expand Up @@ -381,8 +381,8 @@ public static JdbcConnectionParams extractURLComponents(String uri, Properties i
if (port <= 0) {
port = Integer.parseInt(Utils.DEFAULT_PORT);
}
connParams.setHost(jdbcBaseURI.getHost());
connParams.setPort(jdbcBaseURI.getPort());
connParams.setHost(host);
connParams.setPort(port);
}
// We check for invalid host, port while configuring connParams with configureConnParams()
authorityStr = connParams.getHost() + ":" + connParams.getPort();
Expand Down

0 comments on commit 0a30852

Please sign in to comment.