cancel
Showing results for 
Search instead for 
Did you mean: 

Troubleshoot ODBC Connection for HANA and HIVE

former_member1232
Active Contributor
0 Kudos

Troubleshoot ODBC Connection for HANA and HIVE

Hello Members,

I am following "How To Install Database Drivers for SAP HANA Smart Data Access guide" for connecting HANA SDA to Hadoop and HIVE.

After completion of all steps, I am facing below error in two HANA systems, trying to connect to Hadoop using hive, spark drivers.

I did configuration based on available guidelines and deployed

icbwsb:/usr/sap/HS1/HDB00> isql --help

unixODBC 2.3.4


icbwsb:/usr/sap/HS1/HDB00> isql -v hive1

[S1000][unixODBC][DSI] The error message NoSQLGetPrivateProfileString could not be found in the en-US locale. Check that /en-US/ODBCMessages.xml exists.

[ISQL]ERROR: Could not SQLConnect

icbwsb:/usr/sap/HS1/HDB00>




Result for tracing

ics4sb:/opt/simba/hiveodbc/lib/64> strace -e trace=open isql hive1  2>&1 | grep odbc.ini

open("/usr/sap/HSS/home/.odbc.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3

open("/usr/sap/HSS/home/.odbc.ini", O_RDONLY) = 3

open("/usr/sap/HSS/home/.odbc.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3

open("/usr/sap/HSS/home/.odbc.ini", O_RDONLY) = 3

open("/usr/sap/HSS/home/.odbc.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3

open("/usr/sap/HSS/home/.odbc.ini", O_RDONLY) = 3

open("/usr/sap/HSS/home/.odbc.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3

open("/usr/sap/HSS/home/.odbc.ini", O_RDONLY) = 3

open("/opt/simba/hiveodbc/lib/64//simba.hiveodbc.ini", O_RDONLY) = 3

open("/opt/simba/hiveodbc/lib/64//simba.hiveodbc.ini", O_RDONLY) = 3

ics4sb:/opt/simba/hiveodbc/lib/64>




Thank you in advance,

Amit Lal

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Have you properly modified the simba.hiveodbc.ini file?

Original location: /opt/simba/hiveodbc/lib/64/simba.hiveodbc.ini

You can either:

1) Directly modify simba.hiveodbc.ini from its default installation folder, or-

2) Copy to /usr/sap/HSS/home/.simba.hiveodbc.ini then modify it here

There are some modifications that you need to do in simba.hiveodbc.ini. Please refer to the Simba documentation.

Last step is to export all the required libraries ($LD_LIBRARY_PATH) and both .ini (odbc.ini and simba.hiveodbc.ini) location. As per SAP guide, you can create .customer.sh in your HSS home folder.