agreeable-church-13271
04/07/2019, 3:12 AMechoing-needle-59281
04/09/2019, 3:18 PMmeltano add --custom
command, as documented here: http://meltano.com/docs/plugins.html#add-the-plugin-to-your-meltano-project-custom$ meltano add --custom tap-postgres
> pip_url: git+<https://github.com/singer-io/tap-postgres.git@v0.0.51>`
> executable: tap-postgres
meltano.yml
manually though.agreeable-church-13271
04/10/2019, 1:20 PMechoing-needle-59281
04/10/2019, 1:27 PMmeltano elt --job_id
or MELTANO_JOB_ID
env variable.agreeable-church-13271
04/10/2019, 1:29 PMechoing-needle-59281
04/10/2019, 1:35 PMMELTANO_BACKEND=sqlite|postgres`
# these are the Postgres specific config
PG_ADDRESS=
PG_USERNAME=
PG_PASSWORD=
PG_DATABASE=
PG_PORT=
important-island-7384
04/10/2019, 3:44 PMechoing-needle-59281
04/10/2019, 3:50 PMmeltano.yml
and add whatever keys you need under the config:
section of a plugin: these will get injected into the tap when it runs.important-island-7384
04/10/2019, 3:51 PMechoing-needle-59281
04/10/2019, 3:51 PMmeltano select
command to help you manipulate the catalog output via --discover
so you can use that to control what you want to be selected. You may find documentation about that here https://meltano.com/docs/meltano-cli.html#meltano-selectimportant-island-7384
04/10/2019, 3:54 PMechoing-needle-59281
04/10/2019, 3:55 PMtap-postgres
running.important-island-7384
04/10/2019, 3:57 PMechoing-needle-59281
04/10/2019, 4:00 PMimportant-island-7384
04/10/2019, 4:32 PMagreeable-church-13271
04/11/2019, 11:48 PMdocker-compose up warehouse_db
and meltano install
goes fine. However, meltano select tap-postgres --list
fails.CRITICAL 0 tables were discovered across the entire cluster
echoing-needle-59281
04/12/2019, 12:54 AMmeltano.yml
to set the postgres instance you want to pull from.agreeable-church-13271
04/12/2019, 2:50 AMplugins:
extractors:
- config:
dbname: warehouse
host: localhost
password: warehouse
port: 5502
user: warehouse
default_replication_method: FULL_TABLE
executable: tap-postgres
name: tap-postgres
pip_url: git+<https://github.com/singer-io/tap-postgres.git@v0.0.51>
meltano select tap-postgres --list
?meltano init
again. It failed but it updated the file in .meltano/.../tap.config.json
which allowed the select command to succeed.target.config.json
by hand.meltano elt ...
with invoke.echoing-needle-59281
04/12/2019, 12:28 PMmeltano invoke tap-postgres --properties .meltano/run/tap-postgres/tap.properties.json | meltano invoke target-sqlite
target-sqlite
here but you could use any other target in meltano discover loaders
elt
job log with the state management sadly.tap-postgres
should be updated to support --catalog
instead of --properties
(deprecated)meltano discover
.agreeable-church-13271
04/12/2019, 1:43 PM--catalog
and --properties
. I've seen this done with another tool to deal with this very issue.echoing-needle-59281
04/12/2019, 2:02 PMRegarding the properties vs. catalog issue, I think this is a legacy thing with Singer so it might make sense to effectively use both. That is, call the tap with bothIIRC I got a tap crashing when I sentand--catalog
. I've seen this done with another tool to deal with this very issue.--properties
--catalog
and it wasn't supported. I'll retry that.agreeable-church-13271
04/12/2019, 2:07 PMtap-postgres --config tap-postgres-config.json --catalog local-properties.json --properties local-properties.json
echoing-needle-59281
04/12/2019, 2:09 PMThanks for your pointer on doing the full elt cycle. I'd like to do transform as well as part of the process. Is it possible to include that as well?You'll have to add custom dbt transforms. I suggest you run
meltano add transformer dbt
first to setup your meltano dbt project inside transform/
important-island-7384
04/12/2019, 4:05 PMetl
command. However, in the case of the approach you mentioned (meltano invoke tap-postgres --properties .meltano/run/tap-postgres/tap.properties.json | meltano invoke target-sqlite
), can I specify it should be performed?echoing-needle-59281
04/12/2019, 5:26 PMmeltano elt tap-postgres target-sqlite --transform only
important-island-7384
04/12/2019, 7:50 PMagreeable-church-13271
04/18/2019, 7:26 PM{"singer_state": {}}
and the tap behaves as if there's no state.echoing-needle-59281
04/18/2019, 7:35 PMagreeable-church-13271
04/18/2019, 7:37 PMechoing-needle-59281
04/18/2019, 7:37 PMagreeable-church-13271
04/18/2019, 7:38 PMechoing-needle-59281
04/18/2019, 7:38 PMagreeable-church-13271
04/18/2019, 7:38 PMechoing-needle-59281
04/18/2019, 7:46 PMagreeable-church-13271
04/18/2019, 7:57 PM