gpt4 book ai didi

hadoop - HIVE ODBC 连接器设置

转载 作者:可可西里 更新时间:2023-11-01 14:42:38 25 4
gpt4 key购买 nike

我将 unixodbc 配置为在我的 Linux Mint 机器上使用来自 cloudera 的配置单元连接器,但我在尝试连接到配置单元时不断收到以下错误(例如使用 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

你能帮我找出导致错误的原因吗?

最佳答案

做什么

ldd /opt/cloudera/hiveodbc/lib/64/libclouderahiveodbc64.so

给你看?

可能是驱动没有链接到libodbcinst.so

你可以试试

LD_PRELOAD=/usr/local/libodbcinst.so

或者 libodbcinst.so 在你机器上的任何地方。

关于hadoop - HIVE ODBC 连接器设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26273752/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com