Hello everyone!
Does anyone have SAS and ClickHouse integration on projects?
I am trying to establish a connection via SAS ACCESS TO ODBC with ClickHouse, but nothing is working.
isql is working successfully, but it does not work through SAS.
I have two cases:
1)
odbc.ini
[ClickHouse]
Description = connection to ClickHouse
DNS = clickhouse
ServerName = dwh-*********
Driver = /sas/clickhouse-odbc-1.2.1-Linux/lib64/libclickhouseodbc.so
database = default
UID = ***
PWD = ***
Port = 8123
libname click ODBC DATAsrc=ClickHouse SCHEMA=default USER=*** PASSWORD=***;
NOTE: Libref CLICK was successfully assigned as follows:
Engine: ODBC
Physical Name: ClickHouse
But there are no tables, and they are not registered in SAS MC. Without any obvious error in the log.
When I try to execute:
proc sql;
connect to odbc;
execute( select 1) by click;
quit;
As a result, I got an error:
ERROR: CLI error trying to establish connection: [DataDirect] [ODBC lib] Driver Manager Message file not found.
Please check for the value of InstallDir in your odbc.ini.
LD_LIBRARY_PATH contains /sas/clickhouse-odbc-1.2.1-Linux/lib64/
isql -v ClickHouse
Connected!
SQL> SELECT 1
[S1000]Connection refused
[ISQL]ERROR: Could not SQLExecute
2)
odbc.ini
[ClickHouse]
Description = connection to ClickHouse
DNS = clickhouse
Server = dwh-*********
Driver = /sas/clickhouse-odbc-1.2.1-Linux/lib64/libclickhouseodbc.so
database = default
UID = ***
PWD = ***
Port = 8123
libname click ODBC DATAsrc=ClickHouse SCHEMA=default USER=*** PASSWORD=***;
ERROR: CLI error trying to establish connection: 523 650
isql -v ClickHouse
Connected!
SQL> SELECT 1
1
1
1 rows fetch