Hi, can someone help me setting up a tap-postgres...
# troubleshooting
w
Hi, can someone help me setting up a tap-postgres extractor with 2 different configurations? If I understood correctly, I should use the inheritance capability for this, right? So I would go with this: (I am using meltano/meltano:1.99.0-python3.7 docker image on windows)
Copy code
- name: tap-postgres-cfg1
  inherit_from: tap-postgres
  namespace: tap_postgres_willi
  pip_url: tap-postgres
  executable: tap-postgres
  capabilities:
  - discover
  - properties
  - state
  settings:
  - name: dbname
  - name: host
  - name: password
  - name: port
  - name: user
  config:
...

- name: tap-postgres-cfg2
  namespace: tap_postgres_willi
  inherit_from: tap-postgres
  pip_url: tap-postgres
  executable: tap-postgres
  capabilities:
  - discover
  - properties
  - state
  settings:
  - name: dbname
  - name: host
  - name: password
  - name: port
  - name: user
  config:
...
But when I try to run this I got the following error: ELT could not be completed: Cannot start extractor: Executable 'tap-postgres' could not be found. Extractor 'tap-postgres-cfg1' may not havebeen installed yet using
meltano install extractor tap-postgres-cfg1
, or the executable name may be incorrect.. I am refering to this: https://docs.meltano.com/guide/configuration#multiple-plugin-configurations with the second code snippet, where direct inheritance is used.
j
Do you declare
tap-postgres
before these two? AFAIK you must. I did it for tap-github:
w
Okay, thanks - that helped. But now it says that no property is selected. But when I change the tap-postgres-cfg1 to tap-postgres and remove the inheritance setting, then it is working properly and meltano is accepting my select setting.
message has been deleted
j
What exact statement do you execute?
w
Copy code
docker run -v ${PWD}:/project -w /project meltano/meltano:v1.99.0-python3.7 elt tap-postgres-full-table target-postgres --transform=skip --job_id=tst-import
j
From my experience this should work. Someone smarter than me must help here...
w
Anyone who can help?
And thanks @jan_soubusta
j
I am now experiencing the same issue, but only on my localhost with latest meltano version. In the cloud, with v2.12 it works. Going to downgrade it locally and test it again in a while.
Btw I am experiencing it iwht different tap - tap-github