<?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 Establishing a libname connection to Databricks from SAS Viya 4 on AWS in Moving to SAS Viya</title>
    <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/Establishing-a-libname-connection-to-Databricks-from-SAS-Viya-4/m-p/937611#M108</link>
    <description>&lt;P&gt;I am trying to establish a libname connection to Databricks in SAS Studio on SAS Viya 4 POC on AWS. Getting error.&lt;BR /&gt;Requesting assistance from the community.&lt;BR /&gt;My code and error messages are reproduced below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname brklib jdbc classpath="/opt/sas/viya/home/lib64/accessclients/jdbc"
class="cdata.jdbc.databricks.DatabricksDriver"
URL="jdbc:databricks://servername:443;httpPath='/sql/1.0/warehouses/xxxxxx';ssl=1;AuthMech=3;UID=user@example.com;PWD=xxxxxxxxxx";

ERROR: Error trying to establish connection: java.sql.SQLClientInfoException: 'useragententry' is not a valid connection property.
ERROR: Error in the LIBNAME statement.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 30 Jul 2024 13:49:28 GMT</pubDate>
    <dc:creator>thesasuser</dc:creator>
    <dc:date>2024-07-30T13:49:28Z</dc:date>
    <item>
      <title>Establishing a libname connection to Databricks from SAS Viya 4 on AWS</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/Establishing-a-libname-connection-to-Databricks-from-SAS-Viya-4/m-p/937611#M108</link>
      <description>&lt;P&gt;I am trying to establish a libname connection to Databricks in SAS Studio on SAS Viya 4 POC on AWS. Getting error.&lt;BR /&gt;Requesting assistance from the community.&lt;BR /&gt;My code and error messages are reproduced below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname brklib jdbc classpath="/opt/sas/viya/home/lib64/accessclients/jdbc"
class="cdata.jdbc.databricks.DatabricksDriver"
URL="jdbc:databricks://servername:443;httpPath='/sql/1.0/warehouses/xxxxxx';ssl=1;AuthMech=3;UID=user@example.com;PWD=xxxxxxxxxx";

ERROR: Error trying to establish connection: java.sql.SQLClientInfoException: 'useragententry' is not a valid connection property.
ERROR: Error in the LIBNAME statement.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jul 2024 13:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/Establishing-a-libname-connection-to-Databricks-from-SAS-Viya-4/m-p/937611#M108</guid>
      <dc:creator>thesasuser</dc:creator>
      <dc:date>2024-07-30T13:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Establishing a libname connection to Databricks from SAS Viya 4 on AWS</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/Establishing-a-libname-connection-to-Databricks-from-SAS-Viya-4/m-p/939226#M111</link>
      <description>&lt;P&gt;It looks like you're encountering an issue with the libname statement in SAS when trying to connect to Databricks using JDBC. The error message indicates that there's a problem with one of the connection properties.&lt;/P&gt;&lt;P&gt;Here are a few things you can check and adjust to resolve the issue:&lt;/P&gt;&lt;P&gt;1. JDBC Driver and Classpath&lt;/P&gt;&lt;P&gt;Make sure you have the correct JDBC driver for Databricks and that the path to the JDBC driver in your classpath is accurate. Verify that the JDBC driver file (.jar) is located in the specified directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Connection Properties&lt;/P&gt;&lt;P&gt;The error message suggests that 'useragententry' might be an invalid property. Double-check the connection properties used in the URL. For Databricks, the properties should be correctly formatted and valid for the driver being used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Correct URL Format&lt;/P&gt;&lt;P&gt;Ensure that your JDBC URL is properly formatted. Based on Databricks documentation, your URL should look something like this:&lt;/P&gt;&lt;P&gt;jdbc:databricks://&amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;/;transportMode=http;ssl=1;AuthMech=3;UID=&amp;lt;username&amp;gt;;PWD=&amp;lt;password&amp;gt;;httpPath=&amp;lt;httpPath&amp;gt;;&lt;/P&gt;&lt;P&gt;In your case, it should be:&lt;/P&gt;&lt;P&gt;jdbc:databricks://servername:443;httpPath=/sql/1.0/warehouses/xxxxxx;ssl=1;AuthMech=3;UID=user@example.com;PWD=xxxxxxxxxx;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Check for Valid Properties&lt;/P&gt;&lt;P&gt;Make sure that all properties in the connection string are valid. According to Databricks JDBC documentation:&lt;/P&gt;&lt;P&gt;httpPath should not have single quotes around it.&lt;BR /&gt;Ensure ssl is set to 1 if using SSL (which is typically required).&lt;BR /&gt;AuthMech=3 is correct for username/password authentication.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;5. SAS and JDBC Driver Compatibility&lt;/P&gt;&lt;P&gt;Ensure that the JDBC driver version you're using is compatible with SAS Viya 4 and Databricks. Sometimes issues arise from version mismatches.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. Debugging Steps&lt;/P&gt;&lt;P&gt;Test the JDBC Connection Independently: Use a simple Java program or a JDBC client to test the connection outside of SAS to ensure that the driver and URL work.&lt;BR /&gt;Check SAS Logs: Look for more detailed error messages in the SAS log which might give more context to the problem.&lt;BR /&gt;Consult Documentation: Refer to both SAS and Databricks documentation for any specific configurations or known issues related to JDBC connections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example Updated LIBNAME Statement&lt;/P&gt;&lt;P&gt;Here's how your updated libname statement might look:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname brklib jdbc classpath="/opt/sas/viya/home/lib64/accessclients/jdbc"&lt;BR /&gt;class="cdata.jdbc.databricks.DatabricksDriver"&lt;BR /&gt;URL="jdbc:databricks://servername:443;httpPath=/sql/1.0/warehouses/xxxxxx;ssl=1;AuthMech=3;UID=user@example.com;PWD=xxxxxxxxxx";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ensure that you replace servername, xxxxxx, user@example.com, and xxxxxxxxxx with your actual Databricks server name, warehouse ID, user credentials, and password.&lt;/P&gt;&lt;P&gt;By following these steps, you should be able to troubleshoot and resolve the connection issue. If problems persist, post the complete logs.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 12:28:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/Establishing-a-libname-connection-to-Databricks-from-SAS-Viya-4/m-p/939226#M111</guid>
      <dc:creator>Mitesh73941</dc:creator>
      <dc:date>2024-08-14T12:28:31Z</dc:date>
    </item>
  </channel>
</rss>

