yugabyte / jdbc-yugabytedb

JDBC Driver for Yugabyte SQL (YSQL)
BSD 2-Clause "Simplified" License
17 stars 7 forks source link

Cannot customize cql default port? #3

Open ricemaster opened 4 years ago

ricemaster commented 4 years ago

I'm submitting a ...

Describe the issue Hi guys,

Following the README

String jdbcUrl = "jdbc:postgresql://127.0.0.1:5433/yugabyte";
YBClusterAwareDataSource ds = new YBClusterAwareDataSource(jdbcUrl);

I can change the default sql port 5433 by modify the jdbcUrl, but it shows errors because the jdbc kept trying to connect default cql port 9042 while I'm using a different port for Cassandra like 19042.

Is there any way to customize cql default port?

Driver Version?

<dependency>
    <groupId>com.yugabyte</groupId>
    <artifactId>jdbc-yugabytedb</artifactId>
    <version>42.2.7-yb-3-SNAPSHOT</version>
</dependency> 

Java Version? 1.8

OS Version? CentOS 7

PostgreSQL Version? 11