<?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: Connection malfunction ODBC to Impala using Kerberos in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393619#M248508</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/116219"&gt;@pnmateus&lt;/a&gt;,&amp;nbsp;Did the response help resolve your query? If it did, kindly mark the relevant reply as the solution, as it will aid others in locating the answer more easily in the future.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2024 08:20:31 GMT</pubDate>
    <dc:creator>VidyaSargur</dc:creator>
    <dc:date>2024-09-18T08:20:31Z</dc:date>
    <item>
      <title>Connection malfunction ODBC to Impala using Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393244#M248392</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a ODBC (DSN=IMPALA_PRD) setup to connect to Impala server through kerberos authentication.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I have created the ticket in MIT with success.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I've tested the connection with success.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 458px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41718iF843F1B54E604CAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;However when using the same ODBC connection on a python script or a PowerBI dashboard, it returns the error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ODBC: ERROR [HY000] [Cloudera][DriverSupport] (1110) Unexpected response received from server. Please ensure the server host and port specified for the connection are correct and confirm if SSL should be enabled for the connection.\r\nERROR [HY000] [Cloudera][DriverSupport] (1110) Unexpected response received from server. Please ensure the server host and port specified for the connection are correct and confirm if SSL should be enabled for the connection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For quick test i'm using this simple script:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;import pyodbc&lt;/P&gt;&lt;P&gt;conn_impala = pyodbc.connect(DSN="IMPALA_PRD", autocommit = True)&lt;BR /&gt;cursor = conn_impala.cursor()&lt;/P&gt;&lt;P&gt;Could you please help me solve this riddle?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 18:11:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393244#M248392</guid>
      <dc:creator>pnmateus</dc:creator>
      <dc:date>2024-09-09T18:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Connection malfunction ODBC to Impala using Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393258#M248404</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/116219"&gt;@pnmateus&lt;/a&gt;,&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged in our Impala experts &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/75213"&gt;@ChethanYM&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12885"&gt;@mszurap&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/91929"&gt;@SVB&lt;/a&gt;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 05:26:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393258#M248404</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2024-09-10T05:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Connection malfunction ODBC to Impala using Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393268#M248408</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/116219"&gt;@pnmateus&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;There are a couple of points to check:&lt;/P&gt;&lt;P&gt;- Have you created a "System wide" datasource or a "user specific" datasource in the&amp;nbsp;"ODBC Data sources"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Per the screenshot you are using a 64 bit driver. That works only for 64 bit applications. Please verify if your Power BI (and the started python process) is also 64 bit (use Windows Task Manager to determine that)&lt;/P&gt;&lt;P&gt;- When using MIT kerberos, the best is to define a User specific environment variable (go to your system settings / Environment variables) with name "KRB5CCNAME" and set it to a path / file which can be read only by your user. This ensures that MIT Kerberos tool will create the kerberos ticket cache file in that location and all the processes started by your user will also use the same ticket cache file when authenticating to the services (like Impala through ODBC).&lt;/P&gt;&lt;P&gt;- If that still does not help, ultimately collect the ODBC driver logs, enable the DEBUG or Trace level logging in the datasource settings / Logging options.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 08:21:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393268#M248408</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2024-09-10T08:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Connection malfunction ODBC to Impala using Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393272#M248411</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;1- The ODBC DataSource was created at the system level.&lt;/P&gt;&lt;P&gt;2- The application is running in 64 bit&lt;/P&gt;&lt;P&gt;3- The variable KRB5CCNAME has a path acessible only by the user.&lt;/P&gt;&lt;P&gt;4 - The log from the ODBC driver shows this on failed connection:&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;Sep 10 09:22:46.113 INFO&amp;nbsp; 17524 Simba::ThriftExtension::TETSaslClientTransport::SaslLoggingCallback: ::LogUsername: Username returned by QueryCredentialsAttributes(SECPKG_ATTR_NAMES): userexample@example.com&lt;BR /&gt;Sep 10 09:22:46.113 ERROR 17524 Simba::ThriftExtension::TETSaslClientTransport::SaslLoggingCallback: ::LogUsername: User name returned by GetUsernameEx(NameUserPrincipal): userexample@example.com&lt;BR /&gt;Sep 10 09:22:46.234 DEBUG 17524 Simba::ThriftExtension::TETSaslClientTransport::SaslLoggingCallback: Failed to initialize security context: The specified target is unknown or unreachable&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;Note: The ticket was created with another user (&lt;A href="mailto:userexampleOther@example.com" target="_blank" rel="noopener"&gt;userexampleOther@example.com&lt;/A&gt;) and the user logged in the machine is userexample@example.com&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 09:28:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393272#M248411</guid>
      <dc:creator>pnmateus</dc:creator>
      <dc:date>2024-09-10T09:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Connection malfunction ODBC to Impala using Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393286#M248419</link>
      <description>&lt;P&gt;Thanks for checking. That error message "&lt;SPAN&gt;The specified target is unknown or unreachable"&amp;nbsp;&lt;/SPAN&gt;is not too descriptive, but suggests some Kerberos related setup problem.&lt;/P&gt;&lt;P&gt;If you are connecting to a CDP 7.x cluster, please use the latest Cloudera Impala ODBC 2.7.x driver as it may contain additional fixes:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cloudera.com/downloads/connectors/impala/odbc/" target="_blank"&gt;https://www.cloudera.com/downloads/connectors/impala/odbc/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also you can try to add another environment variable KRB5_CONFIG and point to the krb5.ini file used by the MIT kerberos client. (c:\ProgramData\MIT\Kerberos5\krb5.ini)&lt;/P&gt;&lt;P&gt;If none of these help, please open a support case through our support portal where you can attach more details (and the driver logs).&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;Miklos&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 12:44:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393286#M248419</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2024-09-10T12:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Connection malfunction ODBC to Impala using Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393287#M248420</link>
      <description>&lt;P&gt;I have a VM that kerberos works perfectly. In this VM the log shows the following:&lt;BR /&gt;&lt;BR /&gt;Sep 10 09:22:46.050 DEBUG 17524 Simba::ThriftExtension::TEAutoSasl::TEAutoSasl: Is MIT Kerberos installed: false&lt;BR /&gt;Sep 10 09:22:46.050 DEBUG 17524 Simba::ThriftExtension::TEAutoSasl::TEAutoSasl: use custom plugins: 1&lt;BR /&gt;Sep 10 09:22:46.052 DEBUG 17524 Simba::ThriftExtension::TEAutoSasl::TEAutoSasl: callback set&lt;BR /&gt;Sep 10 09:22:46.056 DEBUG 17524 Simba::ThriftExtension::TEAutoSasl::TEAutoSasl: Sasl inited&lt;BR /&gt;Sep 10 09:22:46.056 DEBUG 17524 Simba::ThriftExtension::TETSaslClientTransport::TETSaslClientTransport: Using SSPI: true&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In the VM that works fine thes keys:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;1-Is MIT Kerberos installed is True&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2-&amp;nbsp;Using SSPI: is false&lt;/P&gt;&lt;P&gt;Maybe is this the problem?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 12:50:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393287#M248420</guid>
      <dc:creator>pnmateus</dc:creator>
      <dc:date>2024-09-10T12:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Connection malfunction ODBC to Impala using Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393380#M248434</link>
      <description>&lt;P&gt;Most likely. Try to figure out the differences between those VMs. The SSPI is the Windows' integrated Kerberos library, it also has tools for "kinit" and "klist" but it's kerberos configuration is in a different place and works only if the VM is part of the Active Directory domain and the user is logged in with it's AD username.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 13:56:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393380#M248434</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2024-09-11T13:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Connection malfunction ODBC to Impala using Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393619#M248508</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/116219"&gt;@pnmateus&lt;/a&gt;,&amp;nbsp;Did the response help resolve your query? If it did, kindly mark the relevant reply as the solution, as it will aid others in locating the answer more easily in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 08:20:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393619#M248508</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2024-09-18T08:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Connection malfunction ODBC to Impala using Kerberos</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393623#M248510</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This problem happened in python and in PowerBI. Both installations were made from Microsoft Store.&lt;/P&gt;&lt;P&gt;For this problem to be solved, I had to uninstall both applications, get the instalation file from the web and install manually.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 09:01:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-malfunction-ODBC-to-Impala-using-Kerberos/m-p/393623#M248510</guid>
      <dc:creator>pnmateus</dc:creator>
      <dc:date>2024-09-18T09:01:07Z</dc:date>
    </item>
  </channel>
</rss>

