<?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: SSL error when opening ODBC connection to Impala in .NET with impersonation in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/SSL-error-when-opening-ODBC-connection-to-Impala-in-NET-with/m-p/393987#M248638</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105170"&gt;@szhao&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Impala experts&amp;nbsp;&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;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 21:10:44 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2024-09-25T21:10:44Z</dc:date>
    <item>
      <title>SSL error when opening ODBC connection to Impala in .NET with impersonation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SSL-error-when-opening-ODBC-connection-to-Impala-in-NET-with/m-p/393975#M248634</link>
      <description>&lt;P&gt;Just for context, our Hadoop cluster is kerberized and is backed by Active Directory that also hosts the other accounts running our .NET apps on Windows.&lt;/P&gt;&lt;P&gt;One of our .NET apps opens a connection to Impala using the .NET OdbcConnection class. The OdbcConnection instance is supplied with an ODBC connection string that specifies the use of the Impala ODBC driver (2.6.7) and points to our Impala daemon nodes. We want to run our Impala queries using a different account from the one that is running the .NET app, so we do WindowsIdentity.RunImpersonated (&lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.security.principal.windowsidentity.runimpersonated?view=net-8.0" target="_blank" rel="noopener"&gt;WindowsIdentity.RunImpersonated Method (System.Security.Principal) | Microsoft Learn&lt;/A&gt;) to run the ODBC connection code as the user that we want. Here's a simple example of how the code looks:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;	WindowsIdentity.RunImpersonated(safeAccessTokenHandle, () =&amp;gt;
	{
		var connectionString = "Driver=Cloudera ODBC Driver for Impala;...;AuthMech=Kerberos;SSL=1;UseSystemTrustStore=1;";
		OdbcCommand command = new OdbcCommand("SELECT 1");
		using (OdbcConnection connection = new OdbcConnection(connectionString))
		{
			command.Connection = connection;
			connection.Open();
			command.ExecuteNonQuery();
		}
	});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we found is that we hit the following error when we use impersonation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR [HY000] [Cloudera][DriverSupport] (1100) SSL certificate verification failed because the certificate is missing or incorrect.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but if we remove the impersonation then the ODBC connection is successful. This makes us think that the issue lies not with the certs but with how WindowsIdentity.RunImpersonated interacts with the Impala ODBC driver.&lt;/P&gt;&lt;P&gt;We also tried turning on LOG_TRACE on the driver to look at the logs, but the logs don't have anything beyond the error message as shown above.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 20:39:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SSL-error-when-opening-ODBC-connection-to-Impala-in-NET-with/m-p/393975#M248634</guid>
      <dc:creator>szhao</dc:creator>
      <dc:date>2024-09-25T20:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error when opening ODBC connection to Impala in .NET with impersonation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SSL-error-when-opening-ODBC-connection-to-Impala-in-NET-with/m-p/393987#M248638</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105170"&gt;@szhao&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Impala experts&amp;nbsp;&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;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 21:10:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SSL-error-when-opening-ODBC-connection-to-Impala-in-NET-with/m-p/393987#M248638</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-09-25T21:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: SSL error when opening ODBC connection to Impala in .NET with impersonation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SSL-error-when-opening-ODBC-connection-to-Impala-in-NET-with/m-p/394002#M248640</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105170"&gt;@szhao&lt;/a&gt;&amp;nbsp;, based on the symptoms this may be a problem within the ODBC driver. Can you please open a support ticket through the MyCloudera support portal so that our support team can forward these information to our driver team?&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;Miklos&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 08:14:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SSL-error-when-opening-ODBC-connection-to-Impala-in-NET-with/m-p/394002#M248640</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2024-09-26T08:14:54Z</dc:date>
    </item>
  </channel>
</rss>

