hawkar_mahmod
03/10/2023, 2:41 PMtap-redshift (default monad-inc variant) I get this issue with psycopg2:hawkar_mahmod
03/10/2023, 2:41 PMbrew install postgres as well but neither have worked.visch
03/10/2023, 3:03 PMhawkar_mahmod
03/10/2023, 3:05 PMversion: 1
default_environment: dev
project_id: 775e36a7-4d19-4b89-8ed7-cfec8c58d2a8
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-redshift
variant: monad-inc
pip_url: git+<https://github.com/Monad-Inc/tap-redshift.git>visch
03/10/2023, 3:18 PMpip_url: git+<https://github.com/Monad-Inc/tap-redshift.git>
For me I needed libpq-dev https://meltano.slack.com/archives/CKHP6G5V4/p1660083457596259?thread_ts=1659552634.170039&cid=CKHP6G5V4
hope that helpsMatt Menzenski
03/10/2023, 4:57 PMtap-redshift, but in target-redshift I needed to upgrade to > 2.9.0 https://github.com/transferwise/pipelinewise-target-redshift/pull/228/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7L23hawkar_mahmod
03/10/2023, 5:18 PMbrew link ing the postgres@10 (didn't try other versions) I installed to get the local dependencies. It was searching for pg_config binary which is provided by the psotgres install.hawkar_mahmod
03/10/2023, 5:19 PMtarget-redshift supports IAM based authentication?Matt Menzenski
03/10/2023, 5:22 PMMatt Menzenski
03/10/2023, 10:37 PMMatt Menzenski
03/10/2023, 10:37 PMmindaugas_nizauskas
03/27/2023, 9:54 PMtarget-redshift . I has some issues with psycopg2-binary. With an installation of meltano , I installed psycopg2-binary==2.9.5 , but it looks like target-redshift wants psycopg2-binary==2.8.5 . Any suggestions what could I do?
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> psycopg2-binary
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Failed to install plugin(s)Matt Menzenski
03/27/2023, 9:56 PM- name: target-redshift
variant: transferwise
pip_url: git+<https://github.com/menzenski/pipelinewise-target-redshift.git@856f6390805e4d64e743901b5f585f01a93df6a1>
and it’s been working fine for me.Matt Menzenski
03/27/2023, 9:57 PMMatt Menzenski
03/27/2023, 9:57 PMmindaugas_nizauskas
03/27/2023, 9:59 PMtarget-redshift using pip install -e . . It looks like that it helped, thank you.Matt Menzenski
03/27/2023, 10:00 PMpip. Is there a reason you did it that way?Matt Menzenski
03/27/2023, 10:01 PMmeltano install to install everythingmindaugas_nizauskas
03/27/2023, 10:01 PMhawkar_mahmod
03/29/2023, 11:02 AMMatt Menzenski
03/29/2023, 1:25 PMMatt Menzenski
03/29/2023, 1:34 PMsts:AssumeRoleWithWebIdentity , while the Redshift AWS service uses a different action sts:AssumeRole to assume a role. I didn’t want to fork the terraform module so I ended up creating a new IAM role with full S3 access to the buckets we use for Redshift logging and the Redshift temp directory, and I pass that role’s ARN to the target-redshift plugin (the aws_redshift_copy_role_arn setting). It works fine.