ClickHouse/clickhouse-jdbc-bridge

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

HeenaBansal2009 opened this issue · 3 comments

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

  • Commmand to start CH server

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

  • netstat -tulnp | grep LISTEN output :

  • ./clickhouse-client connection is hung :

  • Server logs

Screen Shot 2022-03-08 at 10 23 08 PM

Screen Shot 2022-03-08 at 10 22 45 PM

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

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.

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