Clickhouse connection issue
See original GitHub issueAfter “pip install superset-clickhouse”, I couldn’t add the clickhosue in superset as below.
The port change can make effect. If I don’t use 8123, it reports error since it is http connectin. However, no matter what I set for other fields like user, password. It will always gave error in server log as below.
`DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:8123 DEBUG:urllib3.connectionpool:http://localhost:8123 “POST / HTTP/1.1” 401 None Unexpected error Code: 194, e.displayText() = DB::Exception: Password required for user default (version 19.17.5.18 (official build))
ERROR:superset.views.core:Unexpected error Code: 194, e.displayText() = DB::Exception: Password required for user default (version 19.17.5.18 (official build))
INFO:werkzeug:127.0.0.1 - - [03/May/2020 01:08:00] “POST /superset/testconn HTTP/1.1” 400 -`
Any idea? Thanks!
Screenshots
If applicable, add screenshots to help explain your problem.
How to reproduce the bug
- Go to Sources -> Databases
- Click on ‘+’ button
- fill Database and URI
- press Test Connection
Environment
(please complete the following information):
- superset version:0.30.1 or 0.36.0 for apache-superset
- python version:
3.6.9
- sqlalchemy-clickhouse version: 0.1.5.post0
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Additional context
Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (2 by maintainers)
Top GitHub Comments
I tried re install infi.clickhouse_orm and it works. pip uninstall infi.clickhouse_orm pip install infi.clickhouse_orm==1.0.4
cool, it works for me. For local install, you can use the infi.clickhouse_orm-1.0.4-py2-none-any.whl file directly, if you are using python2; However, you have to download infi.clickhouse_orm-1.0.4.tar.gz, and using “python3 setup.py install” command to install it when you are using Python3.