<?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 I need to use the ojdbc jar file which is in workspace&amp;gt;Driver inside my notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/i-need-to-use-the-ojdbc-jar-file-which-is-in-workspace-gt-driver/m-p/96070#M39205</link>
    <description>&lt;P&gt;Hi, Currently I'm working on a project . Where I need to connect with Oracle database from databricks notebook. To do this I need Ojdbc jar file. But my client has installed that jar file in workspace&amp;gt;Driver and not in the cluster library. So to use this I need this jar file in my notebook . How can I install this jar file which is there in the workspace inside my notebook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Oct 2024 04:17:44 GMT</pubDate>
    <dc:creator>Leo_dass</dc:creator>
    <dc:date>2024-10-25T04:17:44Z</dc:date>
    <item>
      <title>I need to use the ojdbc jar file which is in workspace&gt;Driver inside my notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/i-need-to-use-the-ojdbc-jar-file-which-is-in-workspace-gt-driver/m-p/96070#M39205</link>
      <description>&lt;P&gt;Hi, Currently I'm working on a project . Where I need to connect with Oracle database from databricks notebook. To do this I need Ojdbc jar file. But my client has installed that jar file in workspace&amp;gt;Driver and not in the cluster library. So to use this I need this jar file in my notebook . How can I install this jar file which is there in the workspace inside my notebook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 04:17:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-need-to-use-the-ojdbc-jar-file-which-is-in-workspace-gt-driver/m-p/96070#M39205</guid>
      <dc:creator>Leo_dass</dc:creator>
      <dc:date>2024-10-25T04:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: I need to use the ojdbc jar file which is in workspace&gt;Driver inside my notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/i-need-to-use-the-ojdbc-jar-file-which-is-in-workspace-gt-driver/m-p/96082#M39212</link>
      <description>&lt;P&gt;do this in your notebook:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Path to the ojdbc JAR file in the workspace&lt;BR /&gt;jar_path = "/Workspace/Driver/ojdbc8.jar"&lt;/P&gt;&lt;P&gt;# Install the JAR file from the workspace into the cluster&lt;BR /&gt;dbutils.library.install(jar_path)&lt;/P&gt;&lt;P&gt;# Restart the cluster to ensure the JAR file is loaded&lt;BR /&gt;dbutils.library.restartPython()&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 07:00:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-need-to-use-the-ojdbc-jar-file-which-is-in-workspace-gt-driver/m-p/96082#M39212</guid>
      <dc:creator>saurabh18cs</dc:creator>
      <dc:date>2024-10-25T07:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: I need to use the ojdbc jar file which is in workspace&gt;Driver inside my notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/i-need-to-use-the-ojdbc-jar-file-which-is-in-workspace-gt-driver/m-p/96394#M39273</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi thanks for your time . This is the error I'm geting now&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'LibraryHandler' object has no attribute 'install'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Follwed the below steps&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Path to the ojdbc JAR file in the workspace&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;jar_path &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"/Workspace/Drivers/ojdbc8 1.jar"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Set the JAR file in the Spark configuration&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark.conf.&lt;/SPAN&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"spark.jars"&lt;/SPAN&gt;&lt;SPAN&gt;, jar_path)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Restart the cluster to ensure the JAR file is loaded&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dbutils.library.&lt;/SPAN&gt;&lt;SPAN&gt;restartPython&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for the above also I got this error:&amp;nbsp;&lt;SPAN class=""&gt;AnalysisException: &lt;/SPAN&gt;[&lt;A class="" href="https://docs.microsoft.com/azure/databricks/error-messages/error-classes#cannot_modify_config" target="_blank" rel="noopener noreferrer"&gt;CANNOT_MODIFY_CONFIG&lt;/A&gt;] Cannot modify the value of the Spark config: "spark.jars".&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Oct 2024 07:48:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-need-to-use-the-ojdbc-jar-file-which-is-in-workspace-gt-driver/m-p/96394#M39273</guid>
      <dc:creator>Leo_dass</dc:creator>
      <dc:date>2024-10-28T07:48:43Z</dc:date>
    </item>
  </channel>
</rss>

