Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/368.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hadoop 使用SIMBA的Impala ODBC连接_Hadoop_Odbc_Impala - Fatal编程技术网

Hadoop 使用SIMBA的Impala ODBC连接

Hadoop 使用SIMBA的Impala ODBC连接,hadoop,odbc,impala,Hadoop,Odbc,Impala,我参考了Simba/CDH提供的Impala ODBC连接并安装了它。我正在使用CDH5.3和Impala 2.1.0 在odbc.ini中,我尝试了端口2105021000,但无法连接到Impala。后来我使用了端口10000并能够连接。不确定这个端口是否真的像我在isql-v Impala_simba上运行'select count*from emp'时那样在Impala中运行查询,与从Impala shell中运行相同的查询相比,它需要很多时间。 我怀疑配置是否真的使用黑斑羚或蜂巢? 我还

我参考了Simba/CDH提供的Impala ODBC连接并安装了它。我正在使用CDH5.3和Impala 2.1.0

在odbc.ini中,我尝试了端口2105021000,但无法连接到Impala。后来我使用了端口10000并能够连接。不确定这个端口是否真的像我在isql-v Impala_simba上运行'select count*from emp'时那样在Impala中运行查询,与从Impala shell中运行相同的查询相比,它需要很多时间。 我怀疑配置是否真的使用黑斑羚或蜂巢? 我还尝试使用CDH提供的Impala ODBC连接,但也存在同样的问题

您能告诉我在.odbc.ini中应该提到的正确的Impala端口是什么,以便它在Impala中运行查询吗

这里是配置

[ODBC Data Sources]
impala_simba=Simba Impala ODBC Driver
[impala_simba]
# Description: DSN Description.
# This key is not necessary and is only to give a description of the data source.
Description=Simba Impala ODBC Driver (64-bit) DSN
# Driver: The location where the ODBC driver is installed to.
Driver=/opt/simba/impalaodbc/lib/64/libsimbaimpalaodbc64.so
# The DriverUnicodeEncoding setting is only used for SimbaDM
# When set to 1, SimbaDM runs in UTF-16 mode.
# When set to 2, SimbaDM runs in UTF-8 mode.
DriverUnicodeEncoding=1
# Values for HOST, PORT, KrbFQDN, and KrbServiceName should be set here.
# They can also be specified on the connection string.
HOST=10.74.163.109
PORT=10000
Database=default
# The authentication mechanism.
# 0 - no authentication.
# 1 - Kerberos authentication
# 2 - Username authentication.
# 3 - Username/password authentication.
# 4 - Username/password authentication with SSL.
AuthMech=2
# Kerberos related settings.
#KrbFQDN=
#KrbRealm=
#KrbServiceName=
# Username/password authentication with SSL settings.
UID=abhi
#PWD
CAIssuedCertNamesMismatch=1
TrustedCerts=/opt/simba/impalaodbc/lib/64/cacerts.pem
# Specify the proxy user ID to use.
#DelegationUID=
# General settings
TSaslTransportBufSize=1000
RowsFetchedPerBlock=1000
SocketTimeout=0
StringColumnLength=32767
UseNativeQuery=0

问题解决了。使AuthMech=0并删除UID,因为远程客户端将在没有身份验证的情况下连接到Impala。请澄清一下,您是说通过身份验证可以连接,但性能很慢,而没有身份验证的情况下性能很快吗?