ian_lewis
06/20/2023, 2:54 PMtarget-redshift
to access an S3 bucket.
When running locally with $ meltano invoke target-redshift
the process only gets as far as this then stalls:
time=2023-06-20 15:43:10 name=target_redshift level=INFO message=Getting catalog objects from table cache...
time=2023-06-20 15:43:10 name=botocore.credentials level=INFO message=Found credentials in shared credentials file: ~/.aws/credentials
Any suggestions for solving this?edgar_ramirez_mondragon
06/20/2023, 3:03 PMian_lewis
06/20/2023, 3:10 PMtarget-redshift
is capable of invoking the Redshift COPY
command. That suggests to me that if data is already present then it can load that into Redshift.ian_lewis
06/20/2023, 3:15 PMinvoke
the target-redshift
it hangs.edgar_ramirez_mondragon
06/20/2023, 3:20 PMtarget-redshift
can probably run a COPY
command, but I’m sure it’s only used to load staged files created during the sync process. I’m sure the target batches a number of records it got from the tap, creates a CSV or similar file type in S3 with those records, then runs COPY on the file. I don’t think the target has a way of running the COPY command in isolation from the rest of the process.ian_lewis
06/20/2023, 3:28 PMtarget-redshift
hangs with no further output.
time=2023-06-20 15:43:10 name=target_redshift level=INFO message=Getting catalog objects from table cache...
time=2023-06-20 15:43:10 name=botocore.credentials level=INFO message=Found credentials in shared credentials file: ~/.aws/credentials
user
06/20/2023, 3:37 PMstdin
. The normal way to run with Meltano is to use run
. For example:
meltano run tap-gitlab target-redshift
ian_lewis
06/20/2023, 3:38 PMinvoke
.