我配置了unixODBC使用來自Cloudera的蜂巢連接器在我的Linux Mint的機器, 但我不斷收到以下錯誤嘗試連接(例如,使用isql -v hive
)HIVE ODBC連接器設置
S1000][unixODBC][Cloudera][ODBC] (11560) Unable to locate SQLGetPrivateProfileString function.
[ISQL]ERROR: Could not SQLConnect
我蜂巢時想我設置/etc/odbcinst.ini和〜/ .odbc.ini的正確方式:
# content of /etc/odbcinst.ini
[hive]
Description = Cloudera ODBC Driver for Apache Hive (64-bit)
Driver=/opt/cloudera/hiveodbc/lib/64/libclouderahiveodbc64.so
ODBCInstLib=libodbcinst.a(libodbcinst.so.1)
UsageCount = 1
DriverManagerEncoding=UTF-16
ErrorMessagesPath=/opt/cloudera/hiveodbc/ErrorMessages/
LogLevel=0
SwapFilePath=/tmp
和我的〜/ .odbc.ini文件包含:
[hive]
Description=Cloudera ODBC Driver for Apache Hive (64-bit) DSN
Driver = hive
ErrorMessagesPath=/opt/cloudera/hiveodbc/ErrorMessages/
# Values for HOST, PORT, KrbHostFQDN, and KrbServiceName should be set here.
# They can also be specified on the connection string.
HOST= <the host>
PORT= <the port>
Schema=<the schema>
# .. etc
你能幫我找出是什麼導致了錯誤?
這可能會有所幫助:http://stackoverflow.com/questions/13887328/sqlgetprivateprofilestring-failed-with – 2014-10-09 08:58:06
謝謝聲波,但沒有它沒有幫助:)我已經設置了env變量,但錯誤仍然存在 – lucacerone 2014-10-10 07:00:32
這是變量LD_LIBRARY_PATH設置? – 2014-10-10 15:07:40