Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternatives to BalancedClickhouseDataSource in com.clickhouse.jdbc #1159

Closed
mywrong opened this issue Dec 29, 2022 · 1 comment
Closed

Alternatives to BalancedClickhouseDataSource in com.clickhouse.jdbc #1159

mywrong opened this issue Dec 29, 2022 · 1 comment
Labels

Comments

@mywrong
Copy link

mywrong commented Dec 29, 2022

I have a piece of java code as follows:

BalancedClickhouseDataSource ckDataSource = new BalancedClickhouseDataSource(url, properties);
return ckDataSource.getConnection();

It uses ru.yandex.clichouse to get connection.
Now I want to change to com.clickhouse.jdbc, is there any alternative feasible way?

@zhicwu
Copy link
Contributor

zhicwu commented Dec 30, 2022

Hi @mywrong, you just need to specify multiple hosts in connection string. Please refer to #956 for more options and usage.

@zhicwu zhicwu closed this as completed Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants