ClickHouse / clickhouse-jdbc-bridge

A JDBC proxy from ClickHouse to external databases
Apache License 2.0
167 stars 60 forks source link

clickhouse-client is not responding when server started with --listen_port #141

Closed HeenaBansal2009 closed 2 years ago

HeenaBansal2009 commented 2 years ago

I started my CH server with --listen_host=. I see that my server is listening on native protocol at :8123 through net stat output, , but i am unable to connect to clickhouse-client at :8123

./clickhouse-server --config-file=../../programs/server/config.xml -- --listen_host=9.30.160.51

HeenaBansal2009 commented 2 years ago

When I am starting my server with --tcp-port =0 and connect clickhouse-client with port , I can connect clickhouse-client. ./clickhouse-client -u default --host 9.30.160.51 --port 33479

SERVER STARTED : ./clickhouse-server --config-file=../../programs/server/config.xml -- --listen_host=9.30.160.51 --tcp_port=0

zhicwu commented 2 years ago

Hi @HeenaBansal2009, this has nothing to do with JDBC bridge, right?

clickhouse-client uses native/tcp protocol to connect to ClickHouse, while port 8123 by default is for http. You may want to check server configuration as well to ensure you connected to correct port.

HeenaBansal2009 commented 2 years ago

Right,I opened the issue in wrong repo. Can be closed.