I create a new cluster with relaxed security and disabled TLS on all services. I'm able to connect on Hive/Impala using JDBC Connection (Squirrel), with no user and password using this conection string:
Now I activated TLS, and create a user on SO (newuser1).
Now, I'm trying to connect using the same JDBC connection, and using the new user and password, with no sucess.
Any advice are welcome.
You mentioned that you could connect to Impala without user and password. I suppose you didn't change the authentication mechanism but only enabled SSL for Impala service. Then what you need to do is to add SSL, SSLKeyStore and SSLKeyStorePwd into your JDBC connection string:
You don't need UID and PWD unless you have to set AuthMech to 3 which is usually required when Impala uses LDAP authentication.
Thanks for your attention.
Yes, I didn't change the authentication mecanism, only enable SSL.
I supose I have to copy the files located at /var/lib/cloudera-scm-agent/agent-cert/ from Cloudera Host to my computer. So the connection string is:
When I test the connection, shows the message:
Unexpected Error occurred attempting to open an SQL connection.
class java.security.UnrecoverableKeyException: Password verification failed
I'm using Squirrel to connect to impala.
The error was "Password verification failed". You set SSLKeyStore to a truststore.jks file but it should be a keystore.jks file. Please change this property and try again.