<?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: NoClassDefFoundError: scala/Product$class in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/noclassdeffounderror-scala-product-class/m-p/44472#M27659</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/44398"&gt;@YSDPrasad&lt;/a&gt;&amp;nbsp;, could you please let me know which additonal jar files need to install to resolve this ?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 15:15:19 GMT</pubDate>
    <dc:creator>Lraghav</dc:creator>
    <dc:date>2023-09-12T15:15:19Z</dc:date>
    <item>
      <title>NoClassDefFoundError: scala/Product$class</title>
      <link>https://community.databricks.com/t5/data-engineering/noclassdeffounderror-scala-product-class/m-p/7940#M3676</link>
      <description>&lt;P&gt;import com.microsoft.azure.sqldb.spark.config.Config&lt;/P&gt;&lt;P&gt;import com.microsoft.azure.sqldb.spark.connect._&lt;/P&gt;&lt;P&gt;import com.microsoft.azure.sqldb.spark.query._&lt;/P&gt;&lt;P&gt;val query = "Truncate table tablename"&lt;/P&gt;&lt;P&gt;val config = Config(Map(&lt;/P&gt;&lt;P&gt;&amp;nbsp;"url"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;gt; dbutils.secrets.get(scope = "azurekeyvault-scope", key = "DW-URL"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;"databaseName" -&amp;gt; dbutils.secrets.get(scope = "azurekeyvault-scope", key = "DW-DBName"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;"user"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;gt; dbutils.secrets.get(scope = "azurekeyvault-scope", key = "DW-Username"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;"password"&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;gt; dbutils.secrets.get(scope = "azurekeyvault-scope", key = "DW-Password"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;"queryCustom"&amp;nbsp;-&amp;gt; query&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;sqlContext.sqlDBQuery(config)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While executing the above command in cluster 12.0 runtime version i am facing an error like NoClassDefFoundError&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 19:45:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/noclassdeffounderror-scala-product-class/m-p/7940#M3676</guid>
      <dc:creator>YSDPrasad</dc:creator>
      <dc:date>2023-03-10T19:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: NoClassDefFoundError: scala/Product$class</title>
      <link>https://community.databricks.com/t5/data-engineering/noclassdeffounderror-scala-product-class/m-p/7941#M3677</link>
      <description>&lt;P&gt;@Someswara Durga Prasad Yaralgadda​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The NoClassDefFoundError error occurs when a class that was available during the compile time is not available at the runtime. This could be due to a few reasons, including a missing dependency or an incompatible version of a dependency.&lt;/P&gt;&lt;P&gt;In your case, it seems like the error is related to the Azure SQL DB Spark connector library. The missing class could be a part of this library. You can try the following steps to resolve the issue:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Check that the necessary Azure SQL DB Spark connector library is available in your cluster's runtime environment. You can try to add the dependency explicitly using the %AddJar magic command.&lt;/LI&gt;&lt;LI&gt;Make sure that the version of the Azure SQL DB Spark connector library matches the version that is compatible with your Spark cluster's runtime version.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 07:22:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/noclassdeffounderror-scala-product-class/m-p/7941#M3677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-13T07:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: NoClassDefFoundError: scala/Product$class</title>
      <link>https://community.databricks.com/t5/data-engineering/noclassdeffounderror-scala-product-class/m-p/7943#M3679</link>
      <description>&lt;P&gt;Yes suteja by adding additional jar files I can resolve this issue but while running the read and write operation by connecting sqldb there I am facing error. I found different code to execute truncate command now it is working fine.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 10:10:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/noclassdeffounderror-scala-product-class/m-p/7943#M3679</guid>
      <dc:creator>YSDPrasad</dc:creator>
      <dc:date>2023-03-21T10:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: NoClassDefFoundError: scala/Product$class</title>
      <link>https://community.databricks.com/t5/data-engineering/noclassdeffounderror-scala-product-class/m-p/44472#M27659</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/44398"&gt;@YSDPrasad&lt;/a&gt;&amp;nbsp;, could you please let me know which additonal jar files need to install to resolve this ?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 15:15:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/noclassdeffounderror-scala-product-class/m-p/44472#M27659</guid>
      <dc:creator>Lraghav</dc:creator>
      <dc:date>2023-09-12T15:15:19Z</dc:date>
    </item>
  </channel>
</rss>

