https://meltano.com/ logo
#announcements
Title
# announcements
c

colossal-cricket-61413

02/15/2021, 11:02 PM
Where can I find the catalog for a certain tap?
1
r

ripe-musician-59933

02/15/2021, 11:08 PM
See http://meltano.com/docs/integration.html#extractor-catalog-generation
If you'd like to manually inspect the generated catalog for debugging purposes, you can dump it to STDOUT or a file using the
--dump=catalog
option on
meltano invoke
or
meltano elt
.
c

colossal-cricket-61413

02/15/2021, 11:18 PM
Specifically I want to be able to adjust datatypes within the catalog, is there a way to edit the catalog that is being used for the ELT
c

calm-hair-50010

02/16/2021, 10:07 PM
Along these same lines, I’m trying to create a pipeline using
tap-mysql
and
target-redshift
. I have multiple databases in mysql and when I examine the catalog via
meltano select tap-mysql --list --all
, it looks like they’re getting captured in the format
database_name-table_name.field_name
. However,
target-redshift
doesn’t seem to like that and throws an
Exception writing records', PostgresError('Identifier must only contain lower case letters, numbers, underscores, or dollar signs.
Am I correct in assuming that I need to override the schema manually to reformat those data sources and if so, would the methods linked in the docs above be the appropriate way to approach that?
r

ripe-musician-59933

02/16/2021, 10:08 PM
That sounds like the target-redshift version of this error on target-postgres: https://meltano.com/plugins/loaders/postgres.html#error-psycopg2-programmingerror-syntax-error-at-or-near. The suggestion is the same: give the
transferwise
variant a try instead of `datamill-co`: https://github.com/transferwise/pipelinewise-target-redshift
As far as I'm aware, tap-mysql does not have an option to exclude database names from stream names, which is what's tripping up targets that don't expect it
c

calm-hair-50010

02/16/2021, 10:14 PM
Cool, all that makes sense and tracks with what I’ve seen on my end too. I’ve tried the transferwise version (assuming that it should play nice with tap-mysql which also seems to be transferwise under the hood), but I get:
Copy code
ELT could not be completed: Cannot start loader: Executable 'pipelinewise-target-redshift' could not be found. Loader 'pipelinewise-target-redshift' may not have been installed yet using `meltano install loader pipelinewise-target-redshift`, or the executable name may be incorrect.
I’ve run that included
meltano install
command (which seems to have worked fine) as well, but still no success. Any chance there are special tricks to the config on this one?
r

ripe-musician-59933

02/16/2021, 10:15 PM
Can you share your
meltano.yml
plugin definition?
Are you using Docker by any chance? You may be running into https://gitlab.com/meltano/meltano/-/issues/2572
c

calm-hair-50010

02/16/2021, 10:20 PM
interesting! I started out using docker but have shifted away from it for the moment so I didn’t have to keep relying on verbose
docker run
commands everytime I wanted to try something 🙂
r

ripe-musician-59933

02/16/2021, 10:21 PM
As long as you either go all-Docker or all-local, you're good, but don't mix!
c

calm-hair-50010

02/16/2021, 10:22 PM
totally - I’m planning on all-local for testing at this point and then potentially containerizing in production down the road
r

ripe-musician-59933

02/16/2021, 10:22 PM
All right, good. So you're running
meltano install
and
meltano elt
both without Docker? Because then that issue isn't it 🙂
1
c

calm-hair-50010

02/16/2021, 10:22 PM
in the meantime, here’s the relevant
meltano.yml
chunk:
Copy code
- name: pipelinewise-target-redshift
    namespace: pipelinewise_target_redshift
    pip_url: pipelinewise-target-redshift
    executable: pipelinewise-target-redshift
    config:
      host: REDACTED
      port: REDACTED
      user: REDACTED
      password: REDACTED
      dbname: REDACTED
      aws_access_key_id: REDACTED
      aws_secret_access_key: REDACTED
      s3_bucket: REDACTED
      default_target_schema: REDACTED
r

ripe-musician-59933

02/16/2021, 10:23 PM
Try
executable: target-redshift
c

calm-hair-50010

02/16/2021, 10:23 PM
ah! thanks - let me try that
success! (at least, now I’ve got a different error message, but I’ll take that!)
🎉 1
looks like I need to wrangle some s3 buckets
Closing the loop - that was it! Thanks again @ripe-musician-59933
r

ripe-musician-59933

02/16/2021, 10:48 PM
My pleasure, glad we figured it out!