shaped-ai / target-clickhouse

Meltano Target for Clickhouse
Apache License 2.0
8 stars 16 forks source link

question: How to connect target-clickhouse with SSL certificate? #155

Open AndreiPetrukhin opened 7 months ago

AndreiPetrukhin commented 7 months ago

I am not sure about settings for clickhouse and have pretty the following settings:

loaders:

dror-g commented 7 months ago

I think you might be missing secure: true.
For me it works when it's included, but I'm not using a custom cert (maybe remove verify to ignore that?).

Also I'm using just this config line, not broken: sqlalchemy_url: clickhouse+native://default:<yourpassword>@aeopdsaday.us-east-1.aws.clickhouse.cloud?secure=true

Notice I use clickhouse+native. you can set that with driver option. https is not a valid driver, only http is, but won't connect over SSL.

(sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:clickhouse.https )