-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Connect to Clickhouse Error #23065
Comments
@Jcccxxx thanks for reporting. On which version of Superset is this happening? I'm currently working on improving compatibility of the ClickHouse spec, so if this is happening on master branch this should be fixed shortly. |
it display Version: 0.0.0.dev0. |
How did you install it? Did you clone the repo? |
I clone from git, and use 'docker-compose -f docker-compose-non-dev.yml up' to start |
Did you also add the ClickHouse connect driver? |
yes, the version of clickhouse connect is 0.5.7 |
What port did you use in your SQLAlchemy URI? ClickHouse Connect uses the ClickHouse HTTP interface, so if you are using the SQLAlchemy URL the port should normally be 8123 (for plain HTTP) or 8443 (for HTTPS). I can reproduce your exact error if I use the wrong (native interface) port of 9440:
causes the "connection reset by peer error"
works correctly (play.clickhouse.com uses the standard HTTP port of 443 instead of 8443). Please try the HTTP (8123) or HTTPS (8443) port on your server. |
Same issue: I tried with port 9000, 8123, 8443 and no luck. I can connect to the CH db normally on the port 9000, but no luck with superset @genzgd. |
I ended up using clickhouse-driver and clickhouse-sqlalchemy instead of clickhouse-connector, like it was suggested in another issue (I believe by genzgd) and it seems to work fine (k8s-helm installation). |
@javiermas That SSL error is associated with older versions of Python. What Python version are you running? |
Just discovered that in clickhouse-connect 0.6 removed Superset engine was removed |
@xRomZak The superset engine spec was removed from clickhouse-connect to make it consistent with all other Superset connectors. clickhouse-connect now uses the ClickHouse engine spec in the main superset project that @villebro ported there a couple of months ago. It still works very well with Superset. |
I recently reported clickhouse connectivity issue due to invalid/outdated connector here. As fas as I understand to fix it I have to build a container myself incl. a proper driver? |
You should be able to include it in the Use the the following in For using clickhouse-connect:
For using clickhouse-driver, I think you need:
|
This is likely fixed by now, and is pretty out of date if not. If people are still encountering this in current versions (3.x) please open a new Issue or a PR to address the problem. |
A clear and concise description of what the bug is.
How to reproduce the bug
Expected results
connection is successful
Actual results
error
Screenshots
Does anyone know how to solve it?
Thanks!
The text was updated successfully, but these errors were encountered: