sanjeev
11/08/2023, 11:20 AMmeltano config tap-sftp test
2023-11-08T08:11:39.323427Z [info ] The default environment 'dev' will be ignored for `meltano config`. To configure a specific environment, please use the option `--environment=<environment name>`.
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Plugin configuration is invalid
Catalog discovery failed: command ['/Users/kusansa/Documents/Oracle/workspace/pocMeltano/my-meltano-project/.meltano/extractors/tap-sftp/venv/bin/tap-sftp', '--config', '/Users/kusansa/Documents/Oracle/workspace/pocMeltano/my-meltano-project/.meltano/run/tap-sftp/tap.dbe373f8-9ed1-446b-8386-2c775acb33d8.config.json', '--discover'] returned 1 with stderr:
/Users/kusansa/Documents/Oracle/workspace/pocMeltano/my-meltano-project/.meltano/extractors/tap-sftp/venv/lib/python3.9/site-packages/paramiko/transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
"class": algorithms.Blowfish,
CRITICAL Config is missing required keys: ['delimiter', 'table_name', 'search_prefix', 'search_pattern']
Traceback (most recent call last):
File "/Users/kusansa/Documents/Oracle/workspace/pocMeltano/my-meltano-project/.meltano/extractors/tap-sftp/venv/bin/tap-sftp", line 8, in <module>
sys.exit(main())
File "/Users/kusansa/Documents/Oracle/workspace/pocMeltano/my-meltano-project/.meltano/extractors/tap-sftp/venv/lib/python3.9/site-packages/singer/utils.py", line 229, in wrapped
return fnc(*args, **kwargs)
File "/Users/kusansa/Documents/Oracle/workspace/pocMeltano/my-meltano-project/.meltano/extractors/tap-sftp/venv/lib/python3.9/site-packages/tap_sftp/tap.py", line 84, in main
utils.check_config(table, REQUIRED_TABLE_SPEC_CONFIG_KEYS)
File "/Users/kusansa/Documents/Oracle/workspace/pocMeltano/my-meltano-project/.meltano/extractors/tap-sftp/venv/lib/python3.9/site-packages/singer/utils.py", line 190, in check_config
raise Exception("Config is missing required keys: {}".format(missing_keys))
Exception: Config is missing required keys: ['delimiter', 'table_name', 'search_prefix', 'search_pattern']
sanjeev
11/08/2023, 11:40 AMnico_berchtold
11/08/2023, 12:23 PM['delimiter', 'table_name', 'search_prefix', 'search_pattern']
Here is an Example of how the Config should look like in your meltano.yml
- name: tap-sftp
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-sftp.git>
config:
host: YOUR_HOST
port: YOUR_PORT
username: YOUR_USERNAME
start_date: ANY_DATE
password: YOUR_PASSWORD
tables:
- table_name: TABLE_NAME
search_pattern: ^.*\.csv$ # This is a regex pattern to match the file name
search_prefix: /prod/outgoing/ # This is the path to the directory where the file is located
key_properties: ['id'] # This is the primary key of the table
encoding: utf-8
sanitize_headers: false
skip_rows: 0
delimiter: ;
sanjeev
11/08/2023, 12:26 PMmeltano config tap-sftp test
2023-11-08T12:17:27.014360Z [info ] The default environment 'dev' will be ignored for `meltano config`. To configure a specific environment, please use the option `--environment=<environment name>`.
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Plugin configuration is invalid
No RECORD message received
sanjeev
11/08/2023, 12:26 PMsanjeev
11/08/2023, 12:26 PMversion: 1
default_environment: dev
project_id: 4a2c21ea-c50b-4bcf-97f0-897aea139089
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-sftp
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-sftp.git>
config:
host: <http://ext20mt.private1.fawdev02bom.oraclevcn.com|ext20mt.private1.fawdev02bom.oraclevcn.com>
port: 22
username: opc
private_key_file: /Users/kusansa/Documents/Oracle/workspace/pocMeltano/BOM_DashBoard_PVT.pem
start_date: 2023-11-08T07:20:02+0000
tables:
- table_name: C_DATA_STORE
search_prefix: '/home/opc/extractservice/SFTP/C_DATA_STORE'
search_pattern: C_DATA_STORE.csv
key_properties: []
delimiter: ','
encoding: utf-8
nico_berchtold
11/08/2023, 12:30 PMsearch_pattern
nico_berchtold
11/08/2023, 12:30 PMnico_berchtold
11/08/2023, 12:31 PMmeltano --log-level=debug config tap-sftp test
sanjeev
11/08/2023, 12:35 PMsanjeev
11/08/2023, 12:43 PMsanjeev
11/08/2023, 12:43 PMsearch_prefix: '/home/opc'
Thanksnico_berchtold
11/08/2023, 12:44 PMsanjeev
11/08/2023, 1:08 PMnico_berchtold
11/08/2023, 1:09 PMnico_berchtold
11/08/2023, 1:10 PMsanjeev
11/08/2023, 1:11 PMnico_berchtold
11/08/2023, 1:12 PMnico_berchtold
11/08/2023, 1:12 PMsanjeev
11/08/2023, 1:14 PM