我正在尝试使用用户DNS ODBC建立与Cloudera Impala的连接,但出现错误:
HY000', '[HY000] [Cloudera][ImpalaODBC] (100) Error from the Impala Thrift API: SSL_connect: certificate verify failed (100) (SQLDriverConnect); [HY000] [Cloudera][ImpalaODBC] (100) Error from the Impala Thrift API: SSL_connect: certificate verify failed (100)
这是我的连接字符串:
my_connection = pyodbc.connect("driver={Cloudera ODBC Driver for Impala};
HOST=myhost.com; PORT=21051; UID=myuser; PWD=mypasword; SSL=1;
TrustedCerts=c:/Program Files/Cloudera ODBC Driver for Impala/lib/cacerts.pem")
我在其他应用程序上使用了相同的ODBC,并且效果很好。