<?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 Re: Need guidance on connecting to Azure Databricks using JDBC Protocol in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/need-guidance-on-connecting-to-azure-databricks-using-jdbc/m-p/104654#M41832</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/141398"&gt;@subhankar&lt;/a&gt;&amp;nbsp;, Good Day!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at the error you are getting here shows that it tries to find some kind of JVM file and probably refers to the JAVA_HOME variable to achieve it. It looks as if it is not set correctly in your Environment Variables.&lt;/P&gt;
&lt;P&gt;To resolve this issue, you should ensure that Java is correctly installed and configured on your system. Specifically, you should check that the JAVA_HOME environment variable is set to the path of your Java installation directory.&lt;/P&gt;
&lt;P&gt;I am also sharing a few public documents which might help you to resolve this issue :&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/75656048/this-problem-appeared-with-the-jpyp-library-and-it-gives-me-the-suggestion-to-a" target="_blank"&gt;https://stackoverflow.com/questions/75656048/this-problem-appeared-with-the-jpyp-library-and-it-gives-me-the-suggestion-to-a&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/iiasa/message_ix/issues/35" target="_blank"&gt;https://github.com/iiasa/message_ix/issues/35&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Moreover, you can refer to our below document to connect with Databricks using JDBC Drivers:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/integrations/jdbc-odbc-bi.html#:~:text=Databricks%20JDBC%20Driver%20Guide" target="_blank"&gt;https://docs.databricks.com/en/integrations/jdbc-odbc-bi.html#:~:text=Databricks%20JDBC%20Driver%20Guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please let me know if this helps and leave a like if this information is useful, followups are appreciated.&lt;BR /&gt;Kudos&lt;BR /&gt;Ayushi&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2025 08:12:32 GMT</pubDate>
    <dc:creator>Ayushi_Suthar</dc:creator>
    <dc:date>2025-01-08T08:12:32Z</dc:date>
    <item>
      <title>Need guidance on connecting to Azure Databricks using JDBC Protocol</title>
      <link>https://community.databricks.com/t5/data-engineering/need-guidance-on-connecting-to-azure-databricks-using-jdbc/m-p/104653#M41831</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Step 1: Download and Reference the JDBC Driver&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Download the Databricks JDBC Driver:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Visit the &lt;/SPAN&gt;&lt;A href="https://databricks.com/spark/jdbc-drivers-download" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Databricks JDBC Driver download page&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Download the appropriate version for your operating system.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Extract the DatabricksJDBC42.jar file from the downloaded zip file.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Step 2: Gather Configuration Settings&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Gather Configuration Settings&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Server Hostname&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;: The hostname of your Azure Databricks cluster or SQL warehouse.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Port&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;: The port number (default is 443).&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;HTTP Path&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;: The HTTP path to your Databricks SQL endpoint.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Authentication Token&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;: A personal access token or Microsoft Entra ID (formerly Azure Active Directory) token.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Step 3: Create a Personal Access Token&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Create a Personal Access Token:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;In your Azure Databricks workspace, click your username in the top bar and select &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Settings&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Click &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Developer&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Next to &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Access tokens&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, click &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Manage&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Click &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Generate new token&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Optionally, enter a comment and set the token's lifetime.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Click &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Generate&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; and copy the token to a secure location.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Step 4: Configure the JDBC Connection&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Configure the JDBC Connection&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Use the following JDBC URL format:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;jdbc:spark://&amp;lt;Server Hostname&amp;gt;:&amp;lt;Port&amp;gt;/;transportMode=http;ssl=1;httpPath=&amp;lt;HTTP Path&amp;gt;;AuthMech=3;UID=token;PWD=&amp;lt;Personal Access Token&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Replace &amp;lt;Server Hostname&amp;gt;, &amp;lt;Port&amp;gt;, &amp;lt;HTTP Path&amp;gt;, and &amp;lt;Personal Access Token&amp;gt; with your specific values.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Step 5: Connect Using JDBC&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Connect Using JDBC&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Depending on your programming language or tool, use the JDBC URL to establish a connection.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;%python&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;import jaydebeapi&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;jdbc_url = "jdbc:spark://&amp;lt;Server Hostname&amp;gt;:&amp;lt;Port&amp;gt;/;transportMode=http;ssl=1;httpPath=&amp;lt;HTTP Path&amp;gt;;AuthMech=3;UID=token;PWD=&amp;lt;Personal Access Token&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;driver_class = "com.simba.spark.jdbc.Driver"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;jar_file = "/path/to/DatabricksJDBC42.jar"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;conn = jaydebeapi.connect(driver_class, jdbc_url, jars=jar_file)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cursor = conn.cursor()&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cursor.execute("SELECT * FROM my_table")&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;result = cursor.fetchall()&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cursor.close()&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;conn.close()&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have followed the above steps to connect to Azure Databricks using JDBC protocol. I am using Python to connect but getting below error:&lt;/P&gt;&lt;P&gt;raise JVMNotFoundException("No JVM shared library file ({0}) "&lt;BR /&gt;jpype._jvmfinder.JVMNotFoundException: No JVM shared library file (jvm.dll) found. Try setting up the JAVA_HOME environment variable properly.&lt;/P&gt;&lt;P&gt;Please help me with this and also let me know if there is another way without having JVM. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 07:48:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/need-guidance-on-connecting-to-azure-databricks-using-jdbc/m-p/104653#M41831</guid>
      <dc:creator>subhankar</dc:creator>
      <dc:date>2025-01-08T07:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need guidance on connecting to Azure Databricks using JDBC Protocol</title>
      <link>https://community.databricks.com/t5/data-engineering/need-guidance-on-connecting-to-azure-databricks-using-jdbc/m-p/104654#M41832</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/141398"&gt;@subhankar&lt;/a&gt;&amp;nbsp;, Good Day!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at the error you are getting here shows that it tries to find some kind of JVM file and probably refers to the JAVA_HOME variable to achieve it. It looks as if it is not set correctly in your Environment Variables.&lt;/P&gt;
&lt;P&gt;To resolve this issue, you should ensure that Java is correctly installed and configured on your system. Specifically, you should check that the JAVA_HOME environment variable is set to the path of your Java installation directory.&lt;/P&gt;
&lt;P&gt;I am also sharing a few public documents which might help you to resolve this issue :&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/75656048/this-problem-appeared-with-the-jpyp-library-and-it-gives-me-the-suggestion-to-a" target="_blank"&gt;https://stackoverflow.com/questions/75656048/this-problem-appeared-with-the-jpyp-library-and-it-gives-me-the-suggestion-to-a&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/iiasa/message_ix/issues/35" target="_blank"&gt;https://github.com/iiasa/message_ix/issues/35&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Moreover, you can refer to our below document to connect with Databricks using JDBC Drivers:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/integrations/jdbc-odbc-bi.html#:~:text=Databricks%20JDBC%20Driver%20Guide" target="_blank"&gt;https://docs.databricks.com/en/integrations/jdbc-odbc-bi.html#:~:text=Databricks%20JDBC%20Driver%20Guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please let me know if this helps and leave a like if this information is useful, followups are appreciated.&lt;BR /&gt;Kudos&lt;BR /&gt;Ayushi&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 08:12:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/need-guidance-on-connecting-to-azure-databricks-using-jdbc/m-p/104654#M41832</guid>
      <dc:creator>Ayushi_Suthar</dc:creator>
      <dc:date>2025-01-08T08:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need guidance on connecting to Azure Databricks using JDBC Protocol</title>
      <link>https://community.databricks.com/t5/data-engineering/need-guidance-on-connecting-to-azure-databricks-using-jdbc/m-p/105667#M42233</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/76914"&gt;@Ayushi_Suthar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set up the JAVA_HOME. Also, I&amp;nbsp;&lt;SPAN&gt;manually downloaded the JDBC&amp;nbsp;&lt;/SPAN&gt;.jar&lt;SPAN&gt;&amp;nbsp;file, and added the downloaded&amp;nbsp;&lt;/SPAN&gt;.jar&lt;SPAN&gt;&amp;nbsp;file to the Java classpath. But still , getting the error "An error occurred: Class com.simba.spark.jdbc.Driver is not found". Could you please confirm, If I need to install Simba ODBC driver as well? If yes, then do i need to do any further configuration setup as well? I already have 32bit&amp;nbsp;Simba ODBC driver installed, but no 64bit. I am trying to connect from Python.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 06:56:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/need-guidance-on-connecting-to-azure-databricks-using-jdbc/m-p/105667#M42233</guid>
      <dc:creator>subhankar</dc:creator>
      <dc:date>2025-01-15T06:56:01Z</dc:date>
    </item>
  </channel>
</rss>

