claire_b.
07/19/2023, 6:18 PMluke_rodgers
07/19/2023, 6:25 PMmeltano.yml
config? also what does requirements.txt
look like?claire_b.
07/19/2023, 6:26 PMclaire_b.
07/19/2023, 6:28 PMversion: 1
default_environment: dev
project_id: 4a612e70-f840-4fbd-bcef-ed4d0cfc8ca4
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-hubspot
variant: potloc
pip_url: git+<https://github.com/potloc/tap-hubspot.git>
select:
- '!list_contacts_v1.*'
- workflows_v3*.*
- web_analytics_v3.*
- web_analytics_deals_v3*.*
- web_analytics_contacts_v3*.*
- properties*.*
- associations*.*
- analytics*.*
- calls*.*
- campaign*.*
- companies*.*
- contacts*.*
- deals*.*
- forms_v3*.*
- lists_v1*.*
- marketing_emails_v1*.*
- meetings*.*
- owners*.*
state_backend: '[cloud storage bucket]'
loaders:
- name: target-bigquery
variant: z3z1ma
pip_url: git+<https://github.com/z3z1ma/target-bigquery.git>
config:
credentials_path:
[credential path] project: [proj]
dataset: pre_container_test
location: US
fail_fast: false
timeout: 300
column_name_transforms:
lower: true
quote: false
denormalized: false
generate_view: true
flattening_enabled: false
flattening_max_depth: 0
claire_b.
07/19/2023, 6:28 PMclaire_b.
07/19/2023, 6:29 PMluke_rodgers
07/19/2023, 6:30 PMstate_backend
line
(could also just be slack formatting that makes it appear that way)claire_b.
07/19/2023, 6:30 PMclaire_b.
07/19/2023, 6:30 PMluke_rodgers
07/19/2023, 6:31 PMuri
key?luke_rodgers
07/19/2023, 6:31 PMclaire_b.
07/19/2023, 6:31 PMclaire_b.
07/19/2023, 6:39 PMRun invocation could not be completed as block failed: Cannot start plugin tap-hubspot: '' is not a valid StateBackend
claire_b.
07/19/2023, 6:39 PMluke_rodgers
07/19/2023, 6:41 PMextractors
and loaders
should be nested under the plugins
key
try moving state_backend
to the top of the fileclaire_b.
07/19/2023, 6:42 PMclaire_b.
07/19/2023, 6:49 PMluke_rodgers
07/19/2023, 6:57 PMedgar_ramirez_mondragon
07/19/2023, 7:07 PMMELTANO_DATABASE_URI
?claire_b.
07/19/2023, 7:07 PMclaire_b.
07/19/2023, 7:08 PMedgar_ramirez_mondragon
07/19/2023, 7:21 PMI don't think I have...should I?No, not really. So, the
state_backend
struct should be at the same level as environments
and plugins
and that doesn't seem to be the case in your meltano.yml
. Should look something like this:
version: 1
default_environment: dev
project_id: 4a612e70-f840-4fbd-bcef-ed4d0cfc8ca4
environments:
- name: dev
- name: staging
- name: prod
state_backend:
uri: ...
plugins:
...
Also, make sure to remove any MELTANO_STATE_*
entries from your .env
fileclaire_b.
07/19/2023, 7:29 PMclaire_b.
07/19/2023, 7:46 PMclaire_b.
07/19/2023, 7:46 PMedgar_ramirez_mondragon
07/19/2023, 7:58 PMThis is perhaps a related question: how should I get my api key into the container without hard coding it? I'm not super familiar with docker.I'm not sure how you're running your container, but
docker run
has a couple of options:
• --env
, -e
one for each env var you want to set. For example docker run -e TAP_HUBSPOT_CLIENT_ID=... -e TAP_HUBSPOT_CLIENT_SECRET=...
• --env-file
you point it to a dotenv file. For example docker run --env-file .env
claire_b.
07/19/2023, 7:58 PM