mike_planting
06/02/2021, 8:30 PMmeltano install loader pipelinewise-target-s3-csv, or the executable name may be incorrect."
But when I check my meltano.yml, I have the following showing the executable name is the same.
- name: pipelinewise-target-s3-csv
namespace: pipelinewise_target_s3_csv
pip_url: pipelinewise-target-s3-csv
executable: pipelinewise-target-s3-csv
# settings:
# - name: s3_bucket
config:
s3_bucket: sample_bucket
s3_key_prefix: sampley_key_prefix
delimiter: ','
quotechar: '"'
add_metadata_columns: true
Install Steps:
docker run -v $(pwd):/project -w /project meltano/meltano add --custom loader pipelinewise-target-s3-csv
docker run -v $(pwd):/project -w /project meltano/meltano install loader pipelinewise-target-s3-csv
Any ideas on how to resolve this? Thanks!douwe_maan
06/02/2021, 8:31 PMtarget-s3-csv, without the pipelinewise- prefix that's in the package namedouwe_maan
06/02/2021, 8:31 PMmeltano.yml, it may just work 🙂mike_planting
06/02/2021, 8:34 PMmike_planting
06/02/2021, 8:35 PMmike_planting
06/02/2021, 8:35 PMmike_planting
06/02/2021, 8:35 PMmike_planting
06/02/2021, 8:35 PMdouwe_maan
06/02/2021, 8:36 PMmeltano.yml , you can just use config and omit settings. If you'd like to configure some setting through an env var (or .env) , it should have a definition under settings. settings is used to tell Meltano what settings a plugin supports, config is one way of providing values for those settingsmike_planting
06/02/2021, 8:42 PMmike_planting
06/03/2021, 6:58 PMmike_planting
06/03/2021, 6:59 PMmike_planting
06/03/2021, 7:03 PMmike_planting
06/03/2021, 7:03 PMextractors:
- name: tap-mysql
variant: transferwise
pip_url: pipelinewise-tap-mysql
config:
host: samplemysqlhost
user: samplemysqluser
select:
- appdb-plans.*
metadata:
'*':
replication-method: INCREMENTAL
replication-key: id
appdb-plans:
replication-method: INCREMENTAL
replication-key: id
- name: pipelinewise-tap-s3-csv
namespace: pipelinewise_tap_s3_csv
pip_url: pipelinewise-tap-s3-csv
executable: tap-s3-csv
config:
bucket: dashboard
start_date: "2000-01-01"
tables:
[{
search_prefix: "di-meltano",
search_pattern: "di-meltano/appdb-plans/-appdb-plans.csv",
table_name: "appdb-plans",
key_properties: ["id"],
delimiter: ","
}]
loaders:
- name: target-redshift
variant: transferwise
pip_url: pipelinewise-target-redshift
config:
host: samplehost
user: sampleuser
dbname: prod
s3_bucket: dashboard
s3_key_prefix: di-meltano
default_target_schema: meltano
add_metadata_columns: true
- name: pipelinewise-target-s3-csv
namespace: pipelinewise_target_s3_csv
pip_url: pipelinewise-target-s3-csv
executable: target-s3-csv
config:
s3_bucket: dashboard
s3_key_prefix: di-meltano
naming_convention: "di-meltano/{stream}/-{stream}*.csv"
delimiter: ','
quotechar: '"'
add_metadata_columns: true
schemas:
- source_schema: "di-meltano" # This is mandatory, but can be anything in this tap type
target_schema: "meltano" # Target schema in the destination Data Warehouse
# List of CSV files to destination tables
tables:
# Every file in S3 bucket that matches the search pattern will be loaded into this table
- table_name: "appdb-plans"
s3_csv_mapping:
search_pattern: "di-meltano/appdb-plans/di-meltano-appdb-plans.csv" # Required.
# search_prefix: "di-meltano" # Optional
# key_properties: ["id"] # Optional
# delimiter: "," # Optional. Default: ','
# OPTIONAL: Load time transformations
#transformations:
# - column: "last_name" # Column to transform
# type: "SET-NULL" # Transformation typedouwe_maan
06/03/2021, 7:38 PMmike_planting
06/03/2021, 8:00 PMmike_planting
06/03/2021, 8:01 PMmike_planting
06/03/2021, 8:03 PMmike_planting
06/03/2021, 8:04 PMdouwe_maan
06/03/2021, 9:00 PMmike_planting
06/03/2021, 9:01 PMdouwe_maan
06/03/2021, 9:01 PMschemas stuff you have at the end of meltano.yml is not going to be picked up by Meltano since that's PipelineWise specificdouwe_maan
06/03/2021, 9:02 PMmeltano config pipelinewise-tap-s3-csv look like what you'd expect from https://github.com/transferwise/pipelinewise-tap-s3-csv#configurationmike_planting
06/03/2021, 9:03 PMmike_planting
06/03/2021, 9:03 PMmeltano | DEBUG Created configuration at /project/.meltano/run/elt/s3_to_redshift_210603_15/fea0bd26-eda4-4c1b-bcc9-2e90ddb48d45/tap.config.json
meltano | DEBUG Could not find tap.properties.json in /project/.meltano/extractors/pipelinewise-tap-s3-csv/tap.properties.json, skipping.
meltano | DEBUG Could not find tap.properties.cache_key in /project/.meltano/extractors/pipelinewise-tap-s3-csv/tap.properties.cache_key, skipping.
meltano | DEBUG Could not find state.json in /project/.meltano/extractors/pipelinewise-tap-s3-csv/state.json, skipping.mike_planting
06/03/2021, 9:03 PMmike_planting
06/03/2021, 9:06 PMmike_planting
06/03/2021, 9:06 PMdouwe_maan
06/03/2021, 9:07 PMcapabilities:
- discover
- properties
- state
Can you add this to your tap-s3-csv definition?mike_planting
06/03/2021, 9:07 PM{
"bucket": "samplebucket",
"start_date": "2000-01-01",
"tables": [
{
"search_prefix": "di-meltano",
"search_pattern": "di-meltano/app-plans/di-meltano-capp-plans.csv",
"table_name": "app-plans",
"key_properties": [
"id"
],
"delimiter": ","
}
]
}mike_planting
06/03/2021, 9:08 PMdouwe_maan
06/03/2021, 9:08 PMdouwe_maan
06/03/2021, 9:08 PMdouwe_maan
06/03/2021, 9:08 PMmike_planting
06/03/2021, 9:09 PMdouwe_maan
06/03/2021, 9:09 PMdouwe_maan
06/03/2021, 9:09 PMcapabilities key at the same level as configmike_planting
06/03/2021, 9:10 PMdouwe_maan
06/03/2021, 9:11 PMdouwe_maan
06/03/2021, 9:11 PMmike_planting
06/03/2021, 9:13 PMdouwe_maan
06/03/2021, 9:13 PMdouwe_maan
06/03/2021, 9:13 PMmike_planting
06/03/2021, 9:14 PMmike_planting
06/03/2021, 9:14 PMdouwe_maan
06/03/2021, 9:15 PMdouwe_maan
06/03/2021, 9:15 PMmike_planting
06/03/2021, 9:17 PMdouwe_maan
06/03/2021, 9:18 PMmike_planting
06/03/2021, 9:18 PMdouwe_maan
06/03/2021, 9:18 PMmike_planting
06/03/2021, 9:20 PMdouwe_maan
06/03/2021, 9:20 PMmessytables to determine types: https://github.com/transferwise/pipelinewise-tap-s3-csv/blob/69f94e81ebe26386a80cf04076671c8bad1ff53b/tap_s3_csv/conversion.py#L25douwe_maan
06/03/2021, 9:20 PMdouwe_maan
06/03/2021, 9:21 PMdouwe_maan
06/03/2021, 9:21 PMdouwe_maan
06/03/2021, 9:22 PMdouwe_maan
06/03/2021, 9:22 PMdouwe_maan
06/03/2021, 9:22 PMmike_planting
06/03/2021, 9:43 PMmike_planting
06/03/2021, 10:08 PMdouwe_maan
06/03/2021, 10:09 PM