zlatan
10/13/2020, 4:39 PMTAP_FACEBOOK_ACCOUNT_ID='' and then meltano.yml contains
extractors:
- name: tap-facebook
pip_url: git+<https://gitlab.com/meltano/tap-facebook.git|https://gitlab.com/meltano/tap-facebook.git>
config:
start_date: '2020-10-02'
insights_buffer_days: 7,
settings:
- name: account_id
env: TAP_FACEBOOK_ACCOUNT_ID
...
schedules:
- name: facebook-linson-gds
extractor: tap-facebook
loader: target-bigquery
transform: skip
interval: '@hourly'
start_date: 2020-10-10 00:00:00
env:
TAP_FACEBOOK_ACCOUNT_ID: 296651825
Tried to have the ACCOUNT_ID with single quotes, but it is still not working.
When running the scheduler it says that no account_id is found.douwe_maan
10/13/2020, 5:25 PMTAP_FACEBOOK_ACCOUNT_ID=296651825 meltano elt tap-facebook target-bigquery --job_id=facebook-linson-gds --dump=extractor-config, is account_id populated in the resulting config JSON?zlatan
10/13/2020, 5:29 PMsudo docker run --interactive -v $(pwd):/projects -w /projects TAP_FACEBOOK_ACCOUNT_ID=296651825 meltano/meltano elt tap-facebook target-bigquery --job_id=facebook-linson-gds1 --dump=extractor-configzlatan
10/13/2020, 5:29 PMdocker: invalid reference format: repository name must be lowercase.douwe_maan
10/13/2020, 5:38 PMsudo docker run --interactive -v $(pwd):/projects -w /projects -e TAP_FACEBOOK_ACCOUNT_ID=296651825 meltano/meltano elt tap-facebook target-bigquery --job_id=facebook-linson-gds1 --dump=extractor-configzlatan
10/13/2020, 5:39 PMzlatan
10/13/2020, 5:39 PMdouwe_maan
10/13/2020, 5:41 PMmeltano invoke airflow scheduler ? Do you see any ``Considering schedule ...`` log messages in the output? Do you see "env": {"TAP_FACEBOOK_ACCOUNT_ID": 296651825} in there?zlatan
10/13/2020, 5:41 PMzlatan
10/13/2020, 5:41 PMzlatan
10/13/2020, 5:41 PMdouwe_maan
10/13/2020, 5:44 PMdouwe_maan
10/13/2020, 5:45 PMzlatan
10/13/2020, 5:47 PMzlatan
10/13/2020, 5:48 PMdouwe_maan
10/13/2020, 5:48 PMzlatan
10/13/2020, 5:48 PMdouwe_maan
10/13/2020, 5:49 PMmeltano invoke airflow schedule still wouldn't run the pipeline again until the next interval tick.
If https://meltano.slack.com/archives/CFG3C3C66/p1602610685178100?thread_ts=1602607187.174200&cid=CFG3C3C66 worked, it should also work when Airflow runs the command instead, but it would be awesome if we could solve https://gitlab.com/meltano/meltano/-/issues/2379, and add meltano schedule run <name> to make it easier to debug these schedules: https://gitlab.com/meltano/meltano/-/issues/2227zlatan
10/13/2020, 5:51 PMdouwe_maan
10/13/2020, 5:51 PMdouwe_maan
10/13/2020, 5:51 PMzlatan
10/13/2020, 5:52 PMzlatan
10/13/2020, 5:59 PMzlatan
10/13/2020, 6:00 PMzlatan
10/13/2020, 6:01 PMdouwe_maan
10/13/2020, 6:06 PMzlatan
10/13/2020, 6:41 PM[2020-10-13 17:05:15,144] {bash_operator.py:146} INFO - Running command: cd /projects; .meltano/run/bin elt tap-facebook target-bigquery --transform=skip --job_id=facebook-linson-gds1
[2020-10-13 17:05:15,145] {taskinstance.py:1150} ERROR - expected str, bytes or os.PathLike object, not int
Traceback (most recent call last):
File "/projects/.meltano/orchestrators/airflow/venv/lib/python3.6/site-packages/airflow/models/taskinstance.py", line 984, in _run_raw_task
result = task_copy.execute(context=context)
File "/projects/.meltano/orchestrators/airflow/venv/lib/python3.6/site-packages/airflow/operators/bash_operator.py", line 151, in execute
preexec_fn=pre_exec)
File "/usr/local/lib/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/local/lib/python3.6/subprocess.py", line 1275, in _execute_child
env_list.append(k + b'=' + os.fsencode(v))
File "/usr/local/lib/python3.6/os.py", line 800, in fsencode
filename = fspath(filename) # Does type-checking of `filename`.
TypeError: expected str, bytes or os.PathLike object, not int
[2020-10-13 17:05:15,148] {taskinstance.py:1194} INFO - Marking task as FAILED. dag_id=meltano_facebook-linson-gds1, task_id=extract_load, execution_date=20201013T160000, start_date=20201013T170514, end_date=20201013T170515
[2020-10-13 17:05:19,875] {local_task_job.py:102} INFO - Task exited with return code 1
This is the error message in the Airflow Logdouwe_maan
10/13/2020, 6:42 PMmeltano.yml ?zlatan
10/13/2020, 7:54 PMdouwe_maan
10/13/2020, 8:46 PMzlatan
10/13/2020, 9:22 PM