<?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>topic Linux ODBC driver Unknown error in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/linux-odbc-driver-unknown-error/m-p/107008#M42673</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to debug an issue connecting to Azure Databricks from a CentOS 7 machine. Testing on my own machine only required unixODBC, the databricks-odbc driver and the connection string which all worked fine. When I test from the CentOS 7 machine, I get the following error:&lt;BR /&gt;Simba::ODBC::Connection::SQLDriverConnectW: [Simba][Hardy] (69) Unknown error occurred during test connection&lt;/P&gt;&lt;P&gt;The connection logs seem to suggest this is down to an issue setting the Thrift Session Tag(?). I cannot find any information on this, or the Unknown error. I have checked that the machine and connect with telnet and curl, the certs are fine, TLS connection looks ok etc. It's worth noting I have also tested this on a CentOS 7 VM on my local machine and it worked there too, so doesn't appear to be due to that.&lt;BR /&gt;It does still seem like a network issue I just can't figure out how, mostly because I don't know what "AddSessionTagHeader" is really doing.&lt;/P&gt;&lt;P&gt;Is there any documentation around this that might help that I've missed?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Simba::SparkODBC::SOSessionManager::GetSession: +++++ enter +++++&lt;BR /&gt;Simba::SparkODBC::SOSessionManager::GetSession: Setting SERVER_NAME and DBMS_VER in OpenSession getInfos field.&lt;BR /&gt;Simba::SparkODBC::SOSessionManager::GetSession: Getting new session handle.&lt;BR /&gt;Simba::SparkODBC::SOTCLIServiceThreadSafeClient::OpenSession: TOpenSessionReq&lt;BR /&gt;client_protocol = HIVE_CLI_SERVICE_PROTOCOL_V1&lt;BR /&gt;client_protocol_i64 = SPARK_CLI_SERVICE_PROTOCOL_V8&lt;BR /&gt;Simba::SparkODBC::SOTCLIServiceThreadSafeClient::OpenSession: Reinitialized cookies cache in connection settings.&lt;BR /&gt;Simba::SparkODBC::SOTCLIServiceThreadSafeClient::OpenSession: +++++ profile enter +++++&lt;BR /&gt;Simba::ThriftExtension::TESettings::AddSessionTagHeader: +++++ enter +++++&lt;BR /&gt;Simba::SparkODBC::SOTCLIServiceThreadSafeClient::OpenSession: +++++ profile leave +++++&lt;BR /&gt;Simba::SparkODBC::SOTCLIServiceClient::~SOTCLIServiceClient: +++++ enter +++++&lt;BR /&gt;Simba::SparkODBC::SOHiveCxnPool::ReleaseBackendCxn: +++++ enter +++++&lt;BR /&gt;Simba::SparkODBC::SOHiveCxnPool::ReleaseBackendCxn: Add HS2 connection back to pool.&lt;BR /&gt;Simba::SparkODBC::SOConnection::SetProperty: +++++ enter +++++&lt;BR /&gt;Simba::ODBC::Connection::SQLDriverConnectW: [Simba][Hardy] (69) Unknown error occurred during test connection.&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jan 2025 11:41:44 GMT</pubDate>
    <dc:creator>TomBrick</dc:creator>
    <dc:date>2025-01-25T11:41:44Z</dc:date>
    <item>
      <title>Linux ODBC driver Unknown error</title>
      <link>https://community.databricks.com/t5/data-engineering/linux-odbc-driver-unknown-error/m-p/107008#M42673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to debug an issue connecting to Azure Databricks from a CentOS 7 machine. Testing on my own machine only required unixODBC, the databricks-odbc driver and the connection string which all worked fine. When I test from the CentOS 7 machine, I get the following error:&lt;BR /&gt;Simba::ODBC::Connection::SQLDriverConnectW: [Simba][Hardy] (69) Unknown error occurred during test connection&lt;/P&gt;&lt;P&gt;The connection logs seem to suggest this is down to an issue setting the Thrift Session Tag(?). I cannot find any information on this, or the Unknown error. I have checked that the machine and connect with telnet and curl, the certs are fine, TLS connection looks ok etc. It's worth noting I have also tested this on a CentOS 7 VM on my local machine and it worked there too, so doesn't appear to be due to that.&lt;BR /&gt;It does still seem like a network issue I just can't figure out how, mostly because I don't know what "AddSessionTagHeader" is really doing.&lt;/P&gt;&lt;P&gt;Is there any documentation around this that might help that I've missed?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Simba::SparkODBC::SOSessionManager::GetSession: +++++ enter +++++&lt;BR /&gt;Simba::SparkODBC::SOSessionManager::GetSession: Setting SERVER_NAME and DBMS_VER in OpenSession getInfos field.&lt;BR /&gt;Simba::SparkODBC::SOSessionManager::GetSession: Getting new session handle.&lt;BR /&gt;Simba::SparkODBC::SOTCLIServiceThreadSafeClient::OpenSession: TOpenSessionReq&lt;BR /&gt;client_protocol = HIVE_CLI_SERVICE_PROTOCOL_V1&lt;BR /&gt;client_protocol_i64 = SPARK_CLI_SERVICE_PROTOCOL_V8&lt;BR /&gt;Simba::SparkODBC::SOTCLIServiceThreadSafeClient::OpenSession: Reinitialized cookies cache in connection settings.&lt;BR /&gt;Simba::SparkODBC::SOTCLIServiceThreadSafeClient::OpenSession: +++++ profile enter +++++&lt;BR /&gt;Simba::ThriftExtension::TESettings::AddSessionTagHeader: +++++ enter +++++&lt;BR /&gt;Simba::SparkODBC::SOTCLIServiceThreadSafeClient::OpenSession: +++++ profile leave +++++&lt;BR /&gt;Simba::SparkODBC::SOTCLIServiceClient::~SOTCLIServiceClient: +++++ enter +++++&lt;BR /&gt;Simba::SparkODBC::SOHiveCxnPool::ReleaseBackendCxn: +++++ enter +++++&lt;BR /&gt;Simba::SparkODBC::SOHiveCxnPool::ReleaseBackendCxn: Add HS2 connection back to pool.&lt;BR /&gt;Simba::SparkODBC::SOConnection::SetProperty: +++++ enter +++++&lt;BR /&gt;Simba::ODBC::Connection::SQLDriverConnectW: [Simba][Hardy] (69) Unknown error occurred during test connection.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2025 11:41:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/linux-odbc-driver-unknown-error/m-p/107008#M42673</guid>
      <dc:creator>TomBrick</dc:creator>
      <dc:date>2025-01-25T11:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Linux ODBC driver Unknown error</title>
      <link>https://community.databricks.com/t5/data-engineering/linux-odbc-driver-unknown-error/m-p/107112#M42705</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145933"&gt;@TomBrick&lt;/a&gt;&amp;nbsp;Greetings! Are you trying to establish a connection from a VM on Azure? Can you add below logging and add the log file here.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;On MacOS and Linux, the odbc.ini file will need to be used to set the logging parameters at the DSN level.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Linux&lt;/STRONG&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;/opt/simba/spark/lib/64/&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To set logging or any configuration at the driver level(would work across all the DSN/DSN-less connections that use the driver), create/edit the simba.sparkodbc.ini file and add the logging configurations under [Driver] section.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[Driver]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ErrorMessagesPath=/opt/simba/spark/ErrorMessages/&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LogLevel=6&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LogFileSize=2097152000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LogPath=/tmp/debug&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 07:06:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/linux-odbc-driver-unknown-error/m-p/107112#M42705</guid>
      <dc:creator>Allia</dc:creator>
      <dc:date>2025-01-27T07:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Linux ODBC driver Unknown error</title>
      <link>https://community.databricks.com/t5/data-engineering/linux-odbc-driver-unknown-error/m-p/107293#M42762</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the reply, yes its an Azure VM. Both log files attached.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 21:19:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/linux-odbc-driver-unknown-error/m-p/107293#M42762</guid>
      <dc:creator>TomBrick</dc:creator>
      <dc:date>2025-01-27T21:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Linux ODBC driver Unknown error</title>
      <link>https://community.databricks.com/t5/data-engineering/linux-odbc-driver-unknown-error/m-p/107514#M42822</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145933"&gt;@TomBrick&lt;/a&gt;&amp;nbsp;Can you use the latest ODBC driver. Below is the link to download it.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.databricks.com/spark/odbc-drivers-download" target="_blank"&gt;https://www.databricks.com/spark/odbc-drivers-download&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, can you add the parameters below in the simba.sparkodbc.ini file? This will give you more information about the issue. Please check the driver connection logs after reproducing the issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;AllowDetailedSSLErrorMessages=1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I see below in the logs which could be due to a variety of issues.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DriverOAuthSupport::OAuthConnection::ReadTokenRefreshSqlState: Connection error SQLState is defaulting to SQLSTATE_CONN_FAILURE (08006)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For further troubleshooting, you may log a support case with us.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 06:26:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/linux-odbc-driver-unknown-error/m-p/107514#M42822</guid>
      <dc:creator>Allia</dc:creator>
      <dc:date>2025-01-29T06:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Linux ODBC driver Unknown error</title>
      <link>https://community.databricks.com/t5/data-engineering/linux-odbc-driver-unknown-error/m-p/108446#M43050</link>
      <description>&lt;P&gt;Reinstalled the latest driver and enabled DetailedSSLErrorMessages. Not reallly seeing much else in the logs.&lt;/P&gt;&lt;P&gt;I'll see about raising a support case.&lt;/P&gt;&lt;P&gt;Thank you for the help &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/74636"&gt;@Allia&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2025 14:54:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/linux-odbc-driver-unknown-error/m-p/108446#M43050</guid>
      <dc:creator>TomBrick</dc:creator>
      <dc:date>2025-02-02T14:54:22Z</dc:date>
    </item>
  </channel>
</rss>

