Home Forums Hive / HCatalog hive odbc php -SQLGetPrivateProfileString

Tagged: 

This topic contains 2 replies, has 3 voices, and was last updated by  Jay Sen 8 months ago.

  • Creator
    Topic
  • #43633

    Jonas Kress
    Member

    Hi,
    when using the horton odbc driver I get the following error :
    ————–odbc_connect—————————-
    [unixODBC][Hortonworks][ODBC] (11560) Unable to locate SQLGetPrivateProfileString function.
    ————–PDO odbc—————————-
    SQLSTATE[HY000] SQLDriverConnect: 11560 [unixODBC][Hortonworks][ODBC] (11560) Unable to locate SQLGetPrivateProfileString function.

    Any ideas?
    Regards,
    Jonas

    ————————-
    [horton64]
    Description=Hortonworks Hive ODBC Driver (64-bit)
    Driver=/usr/lib/hive/lib/native/Linux-amd64-64/libhortonworkshiveodbc64.so

    HOST=receiver02.esc.local
    PORT=10002
    Schema=default
    HiveServerType=2
    HS2AuthMech=2
    #FastSQLPrepare=0
    #UseNativeQuery=0
    UserName=admin
    Trace=Yes
    TraceFile=/tmp/odbc.log

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #48777

    Jay Sen
    Participant

    It is not able to find odbc library defined by ODBCInstLib ( in .hortonworks.hiveodbc.ini )
    if you are using unixODBC, then ODBCInstLib=libodbcinst.so (if LD_LIBRARY_PATH is set ) or ODBCInstLib=/usr/lib64/libodbcinst.so (if LD_LIBRARY_PATH is not set).

    Collapse
    #47948

    David Pugh
    Participant

    I’m getting the same error. Did you manage to resolve this issue.

    Regards

    Dave

    Collapse
Viewing 2 replies - 1 through 2 (of 2 total)