<?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: Spark Lib classpath not set - similar type of issue reported in 1085 in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4860138#M13123</link>
    <description>&lt;P&gt;Its not working as expected.&amp;nbsp; I did the samething initially too. I have created the a new fresh env without any Custom Lib and followed your steps, still the same issue persistent.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Oct 2025 04:09:02 GMT</pubDate>
    <dc:creator>saravrathinam</dc:creator>
    <dc:date>2025-10-28T04:09:02Z</dc:date>
    <item>
      <title>Spark Lib classpath not set - similar type of issue reported in 1085</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4857322#M13080</link>
      <description>&lt;P&gt;I am writing to seek your assistance regarding an issue with setting the Spark classpath for the Redshift JDBC driver (redshift-jdbc42-2.2.0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the steps I have followed so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I created an Environment, named it RedshiftLib, and then navigated to Custom Library. Here, I uploaded the file (redshift-jdbc42-2.2.0.jar), saved it, and published the changes.&lt;/LI&gt;&lt;LI&gt;After publishing, I created a new Notebook, attached the Environment to it, and started a new session.&lt;/LI&gt;&lt;LI&gt;In the Notebook, I executed the following command to validate whether the classpath was set:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```python&lt;/P&gt;&lt;P&gt;print("spark.jars =", spark.sparkContext.getConf().get("spark.jars",""))&lt;/P&gt;&lt;P&gt;cp = spark._jvm.java.lang.System.getProperty("java.class.path")&lt;/P&gt;&lt;P&gt;print("Found 'redshift' on classpath? ", "redshift" in cp.lower())&lt;/P&gt;&lt;P&gt;print(cp[:1200])&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result I received was:&lt;/P&gt;&lt;P&gt;```python&lt;/P&gt;&lt;P&gt;spark.jars =&lt;/P&gt;&lt;P&gt;Found 'redshift' on classpath? False&lt;/P&gt;&lt;P&gt;com.amazon.redshift.Driver (2.x): False&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, I loaded the file into the ABFS path and tried to register the path with the following command, but it still didn’t work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```python&lt;/P&gt;&lt;P&gt;%%configure -f&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "jars": [&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "abfss://xxxxxxxx@onelake.dfs.fabric.microsoft.com/xxxxxx.Lakehouse/Files/Common/Library/redshift-jdbc42-2.2.0.jar"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After connecting the Environment in the Notebook, I removed the existing published library (redshift-jdbc42-2.2.0.jar), reloaded the same file, published it again, and tried to execute the validation command once more. Unfortunately, I am still encountering the same error—the classpath is not set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue seems to be an extension of the known bug 1085. Could you kindly provide some inputs or guidance on how to resolve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time and support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Oct 2025 23:40:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4857322#M13080</guid>
      <dc:creator>saravrathinam</dc:creator>
      <dc:date>2025-10-23T23:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Lib classpath not set - similar type of issue reported in 1085</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4857977#M13091</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1378197"&gt;@saravrathinam&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for reaching out to the Microsoft fabric community forum.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please follow this steps which may help you resolve your issue:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Upload your JAR to the Environment as described above (via the “Custom Library” section). Wait until publish completes.&lt;/LI&gt;
&lt;LI&gt;In the notebook, stop your current session and completely restart it (so Spark picks up the library at session start).&lt;/LI&gt;
&lt;LI&gt;Ensure the notebook is attached to the correct Environment (the one with the JAR).&lt;/LI&gt;
&lt;LI&gt;After the session starts, run your validation code to ensure the classpath includes the JAR.&lt;/LI&gt;
&lt;LI&gt;Then attempt a JDBC connection using the driver class name.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps. Please feel free to reach out for any further questions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 15:27:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4857977#M13091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-10-24T15:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Lib classpath not set - similar type of issue reported in 1085</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4860132#M13122</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1378197"&gt;@saravrathinam&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I wanted to check if you had the opportunity to review the information provided . If you still require support, please let us know, we are happy to assist you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 04:05:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4860132#M13122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-10-28T04:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Lib classpath not set - similar type of issue reported in 1085</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4860138#M13123</link>
      <description>&lt;P&gt;Its not working as expected.&amp;nbsp; I did the samething initially too. I have created the a new fresh env without any Custom Lib and followed your steps, still the same issue persistent.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 04:09:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4860138#M13123</guid>
      <dc:creator>saravrathinam</dc:creator>
      <dc:date>2025-10-28T04:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Lib classpath not set - similar type of issue reported in 1085</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4861395#M13151</link>
      <description>&lt;P&gt;I'm encountering the same error with integrating JBBC Redshift connector (jar file) into a new environment. Despite multiple attempts, I've been unable to resolve the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a detailed breakdown of what I've done so far: I created a new environment and added jar file into the Custom Library, which I downloaded and uploaded to the Custom Library. After starting a new session, I attached the notebook session to the newly created environment and ran the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```python&lt;/P&gt;&lt;P&gt;print("spark.jars =", spark.sparkContext.getConf().get("spark.jars",""))&lt;/P&gt;&lt;P&gt;cp = spark._jvm.java.lang.System.getProperty("java.class.path")&lt;/P&gt;&lt;P&gt;print("Found 'redshift' on classpath? ", "redshift" in cp.lower())&lt;/P&gt;&lt;P&gt;print(cp[:1200])&amp;nbsp; # peek&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def has_class(cls):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spark._jvm.java.lang.Class.forName(cls); return True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; except Exception: return False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;print("com.amazon.redshift.Driver (2.x):", has_class("com.amazon.redshift.Driver"))&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result I received was:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;spark.jars =&lt;/P&gt;&lt;P&gt;Found 'redshift' on classpath? False&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how to proceed from here. It appears that the Redshift driver is not being recognized on the classpath. Could anyone provide some guidance on how to resolve this issue? Any insights or suggestions would be greatly appreciated.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Additional information:&lt;/P&gt;&lt;P&gt;in the spark setting in the workspace setting&lt;BR /&gt;runtime version&lt;BR /&gt;1.3 (spark 3.5, delta 3.2)&amp;nbsp;&lt;BR /&gt;will it useful to debug ?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2025 08:48:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4861395#M13151</guid>
      <dc:creator>saravrathinam</dc:creator>
      <dc:date>2025-10-29T08:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Lib classpath not set - similar type of issue reported in 1085</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4864577#M13204</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1378197"&gt;@saravrathinam&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As you have already completed all the suggested troubleshooting steps and the issue persists, I recommend raising a support ticket with Microsoft. This should assist in resolving the problem.&lt;BR /&gt;Please use the below link for raising the support ticket :&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket" target="_blank"&gt;Create a Fabric and Power BI Support Ticket - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 05:50:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4864577#M13204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-11-03T05:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Lib classpath not set - similar type of issue reported in 1085</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4868830#M13305</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1378197"&gt;@saravrathinam&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please confirm if the issue has been resolved through the support ticket with Microsoft?&amp;nbsp;If the issue has been resolved, we kindly request you to share the resolution or key insights here to help others in the community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please feel free to contact us if you have any further questions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 08:52:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Lib-classpath-not-set-similar-type-of-issue-reported-in/m-p/4868830#M13305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-11-07T08:52:29Z</dc:date>
    </item>
  </channel>
</rss>

