Skip to Content

Troubleshoot ODBC Connection for HANA and HIVE

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2016 at 03:09 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.