Created on 01-25-2019 08:31 AM - edited 09-16-2022 07:05 AM
I'm able to create a System DSN using the "ODBC Data Source Administrator" with a successfull test.
My Authentication mecanism is "User Name and Passowrd"
SASL checked
SSL Options: "Enable SSL" checked
SSL Options: I'm providing the path to a certificate
BUT, trying to connect using pyodbc with the same parameters (server, port, username and password) gives always the same error below whatever the auth_mechanism provided:
pyodbc.connect("DRIVER={Cloudera ODBC Driver for Impala};\
host={server_address};\
port=21051;\
SSL=1;\
auth_mechanism=GSSAPI;\
user=myusername;\
password=mypassword;\
trustedcerts=cert.pem;\
")
Error: ('HY000', u'[HY000] [Cloudera][DriverSupport] (1170) Unexpected response received from server. Please ensure the server host and port specified for the connection are correct. (1170) (SQLDriverConnect); [HY000] [Cloudera][DriverSupport] (1170) Unexpected response received from server. Please ensure the server host and port specified for the connection are correct. (1170)')
I'm using:
ODBC Version: 03.80
Driver Version: 2.6.0.1000
Bitness: 64-bit
Locale: fr_CA
OS: Windows 10 Pro
Created 01-29-2019 08:35 AM
I finally resolved the issue by enclosing UID, PWD, and trustedcerts in braces:
UID={MY USERNAME}
PWD={MY PASSWORD}
trustedcerts={path to file}
Created 01-29-2019 08:35 AM
I finally resolved the issue by enclosing UID, PWD, and trustedcerts in braces:
UID={MY USERNAME}
PWD={MY PASSWORD}
trustedcerts={path to file}
Created 06-18-2019 11:00 AM
Hi,
I had the same error and I tried the solution you have provided.
Now it's showing a different error code saying ERROR [HY000] [CLOUDERA] [Driver Support] (1140).
Unable to load CA certificates from the location.
Could you provide a solution for this?
Thanks in advance.
Vinay
Created 03-27-2020 04:08 PM
...but WHERE did you put those parameters?
I am having the same issue. My file DSN will connect just fine in the ODBC Administrator applet, but in pyodbc it gives the same error. Did you add those parameters to your DSN?
Created 03-28-2020 05:15 PM
As this thread was marked 'Solved' in Jan 2019 you would have a better chance of receiving a useful response by starting a new thread. This will also provide you with the opportunity to provide details specific to your environment that could aid others in providing a more accurate answer to your question.
Created 05-13-2020 07:11 AM
@pudnik26354 Did you already solve your problem. I have the same issue using iodbc and pyodbc on a debian based system.
Created 05-19-2020 08:09 AM
I think it was because if you use kerberos, the kerberos credentials have to be in upper case because they are case sensitive