<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Unable to connect using JDBC impala after enable TLS. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-using-JDBC-impala-after-enable-TLS/m-p/285618#M211938</link>
    <description>&lt;P&gt;I'm not using Kerberos yet, Just the users that are created on SO.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any advice are welcome.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Dec 2019 21:58:55 GMT</pubDate>
    <dc:creator>paulo_klein</dc:creator>
    <dc:date>2019-12-15T21:58:55Z</dc:date>
    <item>
      <title>Unable to connect using JDBC impala after enable TLS.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-using-JDBC-impala-after-enable-TLS/m-p/284900#M211502</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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 &lt;STRONG&gt;no&lt;/STRONG&gt; user and password using this conection string:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Impala:&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;jdbc:impala://Impala_Daemon_Host:21050/default.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Impala:&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;jdbc:hive2://Hive_Gateway_Host:10000/default&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I activated TLS, and create a user on SO (&lt;STRONG&gt;&lt;EM&gt;newuser1&lt;/EM&gt;&lt;/STRONG&gt;).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, I'm trying to connect using the same JDBC connection, and using the new user and password, with no sucess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any advice are welcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 17:31:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-using-JDBC-impala-after-enable-TLS/m-p/284900#M211502</guid>
      <dc:creator>paulo_klein</dc:creator>
      <dc:date>2019-12-05T17:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect using JDBC impala after enable TLS.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-using-JDBC-impala-after-enable-TLS/m-p/285618#M211938</link>
      <description>&lt;P&gt;I'm not using Kerberos yet, Just the users that are created on SO.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any advice are welcome.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Dec 2019 21:58:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-using-JDBC-impala-after-enable-TLS/m-p/285618#M211938</guid>
      <dc:creator>paulo_klein</dc:creator>
      <dc:date>2019-12-15T21:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect using JDBC impala after enable TLS.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-using-JDBC-impala-after-enable-TLS/m-p/285636#M211946</link>
      <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;jdbc:impala://Impala_Daemon_Host:21050/default;SSL=1;SSLKeyStore=&amp;lt;keystore.jks&amp;gt;;SSLKeyStorePwd=&amp;lt;keystore_pwd&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="page"&gt;&lt;DIV class="section"&gt;&lt;DIV class="layoutArea"&gt;&lt;DIV class="column"&gt;&lt;P&gt;You don't need UID and PWD unless you have to set AuthMech to 3 which is usually required when Impala uses LDAP authentication.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Dec 2019 04:00:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-using-JDBC-impala-after-enable-TLS/m-p/285636#M211946</guid>
      <dc:creator>robbiez</dc:creator>
      <dc:date>2019-12-16T04:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect using JDBC impala after enable TLS.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-using-JDBC-impala-after-enable-TLS/m-p/285698#M211978</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/24209"&gt;@robbiez&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your attention.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I didn't change the authentication mecanism, only enable SSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I supose I have to copy the files located at &lt;EM&gt;/var/lib/cloudera-scm-agent/agent-cert/&lt;/EM&gt; from Cloudera Host to my computer. So the&amp;nbsp;connection string is:&lt;/P&gt;&lt;P&gt;jdbc:impala://Impala_Daemon_Host:21050/default;SSL=1;SSLKeyStore=&lt;STRONG&gt;C:\\agent-cert\\cm-auto-in_cluster_truststore.jks&lt;/STRONG&gt;;SSLKeyStorePwd=&lt;STRONG&gt;C:\\agent-cert\\cm-auto-host_key.pw.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I test the connection, shows the message:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Unexpected Error occurred attempting to open an SQL connection.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;class java.security.UnrecoverableKeyException: Password verification failed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Squirrel to connect to impala.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 13:56:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-using-JDBC-impala-after-enable-TLS/m-p/285698#M211978</guid>
      <dc:creator>paulo_klein</dc:creator>
      <dc:date>2019-12-16T13:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect using JDBC impala after enable TLS.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-using-JDBC-impala-after-enable-TLS/m-p/285730#M211996</link>
      <description>&lt;P&gt;The error was "&lt;EM&gt;Password verification failed". &lt;/EM&gt;You set SSLKeyStore to a truststore.jks file but it should be a keystore.jks file. Please change this property and try again.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 20:49:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-connect-using-JDBC-impala-after-enable-TLS/m-p/285730#M211996</guid>
      <dc:creator>robbiez</dc:creator>
      <dc:date>2019-12-16T20:49:51Z</dc:date>
    </item>
  </channel>
</rss>

