john_mizerany
02/28/2024, 10:53 PMmeltano lock --update --all
to ensure your plugins are up to date.`john_mizerany
02/28/2024, 10:55 PMmeltano add
and meltano install
but fails if I use meltano
and any other commands after to execute a pipelineEdgar RamÃrez (Arch.dev)
02/28/2024, 10:59 PMmeltano add extractor tap-fleetio
followed by
meltano invoke tap-fleetio --about
and it ran successfully.
I'm curious if you're running in a docker or CI environment that's missing the lock file at plugins/extractors/tap-fleetio--fleetio.lock
john_mizerany
02/28/2024, 11:01 PMEdgar RamÃrez (Arch.dev)
02/28/2024, 11:18 PMjohn_mizerany
02/28/2024, 11:31 PMos
to run shell scripts inside our flow, we basically are just putting our environment vairables first (for the tap and target) and then afterwards just running
meltano el tap-fleetio target-snowflake
john_mizerany
02/28/2024, 11:32 PMmeltano lock --update --all
meltano el tap-fleetio target-snowflake
But I am still getting the same errorEdgar RamÃrez (Arch.dev)
02/29/2024, 12:20 AMmeltano add
happen?john_mizerany
02/29/2024, 2:27 AMmeltano add extractor tap-fleetio
meltano add loader target-snowflake
meltano lock --update --all
meltano el tap-fleetio target-snowflake
Edgar RamÃrez (Arch.dev)
02/29/2024, 2:28 AMjohn_mizerany
02/29/2024, 2:28 AMjohn_mizerany
02/29/2024, 2:44 PMjohn_mizerany
02/29/2024, 3:50 PMmeltano install extractor tap-github
Extractor 'tap-fleetio' is not known to Meltano. Try running `meltano lock --update --all` to ensure your plugins are up to date.
It’s stuck on my tap and I’m not entirely sure whyEdgar RamÃrez (Arch.dev)
02/29/2024, 4:17 PMmeltano.yml
look like?john_mizerany
02/29/2024, 4:18 PMversion: 1
default_environment: prod
project_id: 0e4bcc18-a3a3-4a6b-a0e3-a9ca8defbbea
environments:
- name: prod
config:
plugins:
extractors:
- name: tap-fleetio
config:
api_key: ${TAP_FLEETIO_API_KEY}
account_token: $TAP_FLEETIO_ACCOUNT_TOKEN}
loaders:
- name: target-snowflake
config:
account: ${TARGET_SNOWFLAKE_ACCOUNT}
database: ${TARGET_SNOWFLAKE_DATABASE}
default_target_schema: ${TARGET_SNOWFLAKE_DEFAULT_TARGET_SCHEMA}
password: ${TARGET_SNOWFLAKE_PASSWORD}
role: ${TARGET_SNOWFLAKE_ROLE)
schema: ${TARGET_SNOWFLAKE_SCHEMA}
user: ${TARGET_SNOWFLAKE_USER}
warehouse: ${TARGET_SNOWFLAKE_WAREHOUSE}
plugins:
extractors:
- name: tap-fleetio
pip_url: git+<https://github.com/fleetio/tap-fleetio.git>
config:
api_key: ${TAP_FLEETIO_API_KEY}
account_token: $TAP_FLEETIO_ACCOUNT_TOKEN}
loaders:
- name: target-snowflake
pip_url: meltanolabs-target-snowflake
config:
account: ${TARGET_SNOWFLAKE_ACCOUNT}
database: ${TARGET_SNOWFLAKE_DATABASE}
default_target_schema: ${TARGET_SNOWFLAKE_DEFAULT_TARGET_SCHEMA}
password: ${TARGET_SNOWFLAKE_PASSWORD}
role: ${TARGET_SNOWFLAKE_ROLE)
schema: ${TARGET_SNOWFLAKE_SCHEMA}
user: ${TARGET_SNOWFLAKE_USER}
warehouse: ${TARGET_SNOWFLAKE_WAREHOUSE}
jobs:
- name: daily-fleetio-job
tasks:
- tap-fleetio target-snowflake
Edgar RamÃrez (Arch.dev)
02/29/2024, 4:20 PMplugins/extractors/
?john_mizerany
02/29/2024, 4:21 PM{
"plugin_type": "extractors",
"name": "tap-fleetio",
"namespace": "tap_fleetio",
"variant": "fleetio",
"label": "Fleetio",
"docs": "<https://hub.meltano.com/extractors/tap-fleetio--fleetio>",
"repo": "<https://github.com/fleetio/tap-fleetio>",
"pip_url": "git+<https://github.com/fleetio/tap-fleetio.git>",
"executable": "tap-fleetio",
"description": "Fleet maintenance software for fleets of all sizes",
"logo_url": "<https://hub.meltano.com/assets/logos/extractors/fleetio.svg>",
"capabilities": [
"about",
"batch",
"catalog",
"discover",
"schema-flattening",
"state",
"stream-maps"
],
"settings_group_validation": [
[
"account_token",
"api_token"
]
],
"settings": [
{
"name": "account_token",
"kind": "password",
"label": "Account Token",
"description": "Account Token",
"sensitive": true
},
{
"name": "api_token",
"kind": "password",
"label": "API Token",
"description": "The token to authenticate against the Fleetio API",
"sensitive": true
},
{
"name": "api_url",
"kind": "string",
"value": "<https://secure.fleetio.com/api>",
"label": "API URL",
"description": "Fleetio API base url"
},
{
"name": "batch_config.encoding.compression",
"kind": "options",
"label": "Batch Config Encoding Compression",
"description": "Compression format to use for batch files.",
"options": [
{
"label": "Gzip",
"value": "gzip"
},
{
"label": "None",
"value": "none"
}
]
},
{
"name": "batch_config.encoding.format",
"kind": "options",
"label": "Batch Config Encoding Format",
"description": "Format to use for batch files.",
"options": [
{
"label": "Jsonl",
"value": "jsonl"
},
{
"label": "Parquet",
"value": "parquet"
}
]
},
{
"name": "batch_config.storage.prefix",
"kind": "string",
"label": "Batch Config Storage Prefix",
"description": "Prefix to use when writing batch files."
},
{
"name": "batch_config.storage.root",
"kind": "string",
"label": "Batch Config Storage Root",
"description": "Root path to use when writing batch files."
},
{
"name": "flattening_enabled",
"kind": "boolean",
"label": "Flattening Enabled",
"description": "'True' to enable schema flattening and automatically expand nested properties."
},
{
"name": "flattening_max_depth",
"kind": "integer",
"label": "Flattening Max Depth",
"description": "The max depth to flatten schemas."
},
{
"name": "stream_map_config",
"kind": "object",
"label": "Stream Map Config",
"description": "User-defined config values to be used within map expressions."
},
{
"name": "stream_maps",
"kind": "object",
"label": "Stream Maps",
"description": "Config object for stream maps capability. For more information check out [Stream Maps](<https://sdk.meltano.com/en/latest/stream_maps.html>)."
}
]
}
john_mizerany
02/29/2024, 4:23 PMapi_token
-> api_key
. And I can still see it listed as api_token
But I assume that is coming from meltano hub?Edgar RamÃrez (Arch.dev)
02/29/2024, 4:24 PMjohn_mizerany
02/29/2024, 4:24 PMjohn_mizerany
02/29/2024, 4:24 PMEdgar RamÃrez (Arch.dev)
02/29/2024, 4:31 PMjohn_mizerany
02/29/2024, 4:31 PMEdgar RamÃrez (Arch.dev)
02/29/2024, 4:41 PMEdgar RamÃrez (Arch.dev)
02/29/2024, 4:42 PMjohn_mizerany
02/29/2024, 4:42 PMmeltano install --clean
locally also is reproducing this issueEdgar RamÃrez (Arch.dev)
02/29/2024, 4:44 PMmeltano.yml
are missing the variant
key:
plugins:
extractors:
- name: tap-fleetio
variant: fleetio
pip_url: git+<https://github.com/fleetio/tap-fleetio.git>
Edgar RamÃrez (Arch.dev)
02/29/2024, 4:44 PMjohn_mizerany
02/29/2024, 4:44 PMjohn_mizerany
02/29/2024, 4:45 PMEdgar RamÃrez (Arch.dev)
02/29/2024, 4:45 PMEdgar RamÃrez (Arch.dev)
02/29/2024, 4:46 PMjohn_mizerany
02/29/2024, 4:51 PMjohn_mizerany
02/29/2024, 4:51 PMEdgar RamÃrez (Arch.dev)
02/29/2024, 4:51 PMjohn_mizerany
02/29/2024, 4:51 PMEdgar RamÃrez (Arch.dev)
02/29/2024, 4:52 PMjohn_mizerany
02/29/2024, 4:53 PMjohn_mizerany
02/29/2024, 4:54 PMShellOperation
task
Basically can just
ShellOperation(
commands = [
"command 1",
"command 2",
]
).run()