gray-architect-29447
07/06/2022, 1:37 AMsource:
type: mssql
config:
# Coordinates
host_port: '192.168.1.1:1433'
database: 'prod-db-2'
scheme: 'PROD-DB2'
# Credentials
username: db2admin
password: "password*"
sink:
type: "datahub-rest"
config:
server: "<http://localhost:6080>"
transformers:
- type: "simple_add_dataset_tags"
config:
tag_urns:
- "urn:li:tag:db2"
ArgumentError: Could not parse rfc1738 URL from string '<PROD-DB2://db2admin:password%2A@192.168.1.1:1433/prod-db-2>'
[2022-07-06 01:26:39,723] INFO {datahub.entrypoints:176} - DataHub CLI version: 0.8.34.2 at /usr/local/lib/python3.8/dist-packages/datahub/__init__.py
[2022-07-06 01:26:39,723] INFO {datahub.entrypoints:179} - Python version: 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0] at /usr/bin/python3 on Linux-5.4.0-104-generic-x86_64-with-glibc2.29
[2022-07-06 01:26:39,723] INFO {datahub.entrypoints:182} - GMS config {'models': {}, 'versions': {'linkedin/datahub': {'version': 'v0.8.34', 'commit': 'f847fa31c9010bbb9df0d13ae7660e59083ea03e'}}, 'managedIngestion': {'defaultCliVersion': '0.8.34.1', 'enabled': True}, 'statefulIngestionCapable': True, 'supportsImpactAnalysis': True, 'telemetry': {'enabledCli': True, 'enabledIngestion': False}, 'datasetUrnNameCasing': False, 'retention': 'true', 'noCode': 'true'}gray-architect-29447
07/06/2022, 1:48 AMgray-architect-29447
07/06/2022, 2:04 AMuri_args:
driver: "ODBC Driver 17 for SQL Server"
Encrypt: "yes"
TrustServerCertificate: "Yes"
#ssl: "True"
autocommit: "True"
Now I'm getting the below error :
ModuleNotFoundError: No module named 'pyodbc'gray-architect-29447
07/06/2022, 2:23 AMsudo pip install pyodbc and now getting this error :
Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)")hundreds-photographer-13496
07/06/2022, 9:01 AMgray-architect-29447
07/06/2022, 9:38 AMhundreds-photographer-13496
07/07/2022, 3:52 AMhundreds-photographer-13496
07/07/2022, 6:02 AMscheme: 'PROD-DB2'
scheme is automatically set to mssql+pytds or mssql+pyodbc depending on whether odbc is used.gray-architect-29447
07/07/2022, 6:55 AM"could not find a login matching the name provided sql connection" error. Since, the user is Windows domain user and has @company.local prefix, I need to change username to : "COMPANYLOCAL\dbadmin". But it will also result an error.gray-architect-29447
07/07/2022, 6:57 AMin "<file>", line 9, column 15
`found unknown escape character 'k'`"hundreds-photographer-13496
07/07/2022, 6:59 AMgray-architect-29447
07/07/2022, 7:01 AMhundreds-photographer-13496
07/07/2022, 7:02 AMhundreds-photographer-13496
07/07/2022, 7:06 AMgray-architect-29447
07/07/2022, 7:16 AMgray-architect-29447
07/07/2022, 7:16 AMgray-architect-29447
07/07/2022, 7:22 AMgray-architect-29447
07/07/2022, 7:32 AMProgrammingError: (pyodbc.ProgrammingError) ('ODBC SQL type -150 is not yet supported. column-index=2 type=-150', 'HY106'gray-architect-29447
07/07/2022, 7:33 AMhundreds-photographer-13496
07/07/2022, 7:42 AMgray-architect-29447
07/07/2022, 7:52 AMhundreds-photographer-13496
07/07/2022, 8:05 AMuse_odbc and uri_args and check if it works. (you will also need to remove scheme if you haven't already)gray-architect-29447
07/07/2022, 10:02 AMhundreds-photographer-13496
07/07/2022, 10:08 AMgray-architect-29447
07/08/2022, 12:54 AMhundreds-photographer-13496
07/08/2022, 4:01 AMflaky-soccer-57765
09/05/2022, 9:42 AMflaky-soccer-57765
09/05/2022, 9:43 AMhundreds-photographer-13496
09/06/2022, 8:48 AMflaky-soccer-57765
09/06/2022, 8:57 AMhundreds-photographer-13496
09/06/2022, 9:26 AMflaky-soccer-57765
09/06/2022, 3:29 PMflaky-soccer-57765
09/08/2022, 10:22 AMflaky-soccer-57765
09/08/2022, 11:08 AMhundreds-photographer-13496
09/12/2022, 6:06 AMhundreds-photographer-13496
09/12/2022, 6:09 AM