【发布时间】:2014-10-09 08:29:53
【问题描述】:
我将 unixodbc 配置为在我的 Linux Mint 机器中使用来自 cloudera 的 hive 连接器,
但我在尝试连接到 hive 时不断收到以下错误(例如使用isql -v hive)
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
你能帮我找出导致错误的原因吗?
【问题讨论】:
-
感谢 sonic,但没有帮助 :) 我已经设置了 env 变量,但错误仍然存在
-
这个变量 LD_LIBRARY_PATH 设置了吗?
-
@sonic 是的,它已设置
标签: hadoop odbc hive cloudera unixodbc