Andrew Petrukhin
04/19/2024, 2:45 PMELT could not be completed: Loader failed
. Details inside.Andrew Petrukhin
04/19/2024, 2:46 PMAndrew Petrukhin
04/19/2024, 2:46 PMloaders:
- name: target-clickhouse
variant: shaped-ai
pip_url: git+<https://github.com/shaped-ai/target-clickhouse.git>
config:
database: holding_test
default_target_schema: holding_test
host: <http://rc1a-hqgn203ff9jog6cr.mdb.yandexcloud.net|rc1a-hqgn203ff9jog6cr.mdb.yandexcloud.net>
load_method: upsert
port: 8443
table_name: test
username: user1
verify: true
password: $TARGET_CLICKHOUSE_PASSWORD
env:
SSL_CERT_FILE: "/home/andrew_petrukhin_vlad/.dbt/RootCA.pem"
Andrew Petrukhin
04/19/2024, 2:47 PMSSL
definition. But no ideas how to fix that.Reuben (Matatika)
04/19/2024, 2:48 PMmeltano invoke <tap> > tap.out
cat tap.out | meltano invoke target-clickhouse
Andrew Petrukhin
04/19/2024, 3:10 PMReuben (Matatika)
04/19/2024, 3:35 PMPOST
request:
File "/home/andrew_petrukhin_vlad/meltano-projects/dbt-gbq-clickhouse/.meltano/loaders/target-clickhouse/venv/lib/python3.9/site-packages/clickhouse_sqlalchemy/drivers/http/transport.py", line 171, in _send
r = <http://self.http.post|self.http.post>(
File "/home/andrew_petrukhin_vlad/meltano-projects/dbt-gbq-clickhouse/.meltano/loaders/target-clickhouse/venv/lib/python3.9/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
Andrew Petrukhin
04/19/2024, 3:37 PMmeltano.yml
Reuben (Matatika)
04/19/2024, 3:43 PMpassword: $TARGET_CLICKHOUSE_PASSWORD
as Meltano will pick up a value set in the shell env or .env
file for all plugin settings automatically: https://docs.meltano.com/guide/configuration/#configuring-settings
So try removing that line and see if it works.Andrew Petrukhin
04/19/2024, 3:48 PMtarget-clickhouse set --interactive
this param was added to .env
.
if I delete password: $TARGET_CLICKHOUSE_PASSWORD
from meltano.yml
the same error occurs.Andrew Petrukhin
04/19/2024, 3:51 PMReuben (Matatika)
04/19/2024, 3:58 PMmeltano.yml
, and I don't see anything about an SSL certificate in the repo - did you have to do something special for DBeaver? Also, have you tried with verify: false
, or is that not an option?Andrew Petrukhin
04/19/2024, 4:02 PMAndrew Petrukhin
04/19/2024, 4:02 PMAlso, have you tried withI have not tried. Let me, or is that not an option?verify: false
Andrew Petrukhin
04/19/2024, 4:04 PMAlso, have you tried withdidn't work either, or is that not an option?verify: false
Reuben (Matatika)
04/19/2024, 4:10 PMReuben (Matatika)
04/19/2024, 4:12 PMsecure
setting
https://hub.meltano.com/loaders/target-clickhouse#secure-setting
but I don't think that helps you (only applied when not using HTTP). My understanding of SSL is not great, so I could be missing something fundamental here...Andrew Petrukhin
04/19/2024, 4:14 PMAndrew Petrukhin
04/19/2024, 4:16 PMReuben (Matatika)
04/19/2024, 4:19 PMReuben (Matatika)
04/19/2024, 4:23 PMAndrew Petrukhin
04/19/2024, 5:05 PM