<?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: Graphframes error: ClassNotFoundException in Fabric platform</title>
    <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/5130730#M26331</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363697" data-lia-user-login="goreavin" class="lia-mention lia-mention-user"&gt;goreavin&lt;/a&gt;&amp;nbsp;your suggested solution does work for me in a Fabric Notebook even using Python.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My custom environment uses Spark 3.5 and Scala 2.12, so:&lt;BR /&gt;- I downloaded graphframes-0.8.4-spark3.5-s_2.12.jar from &lt;A title="Spark Packages graphframes" href="https://spark-packages.org/package/graphframes/graphframes" target="_blank" rel="noopener"&gt;https://spark-packages.org/package/graphframes/graphframes&lt;/A&gt;&lt;BR /&gt;- I imported it as Custom library in my custom environment.&amp;nbsp;&lt;BR /&gt;- I attached this custom environment to my notebook workspace.&amp;nbsp;&lt;BR /&gt;- I added as a first cell of my notebook:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%%configure
{
    "conf": {
        "spark.jars.packages": "graphframes:graphframes:0.8.4-spark3.5-s_2.12"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;- I added at the beginning of my PySpark cell:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from graphframes import GraphFrame
spark.sparkContext.setCheckpointDir("Files/graphframes_checkpoints")&lt;/LI-CODE&gt;&lt;P&gt;- and then I started working with graphframes in PySpark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: &lt;FONT face="courier new,courier"&gt;setCheckpointDir&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;is required by GraphFrame when calculating connected components. And t&lt;/SPAN&gt;he &lt;FONT face="courier new,courier"&gt;"Files/graphframes_checkpoints"&lt;/FONT&gt; path is relative to the default lakehouse path, so you need at least a default lakehouse attached to your notebook.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can now survive in Fabric even without SQL Server's recursive CTE support. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Mar 2026 15:56:32 GMT</pubDate>
    <dc:creator>_maclura_</dc:creator>
    <dc:date>2026-03-12T15:56:32Z</dc:date>
    <item>
      <title>Graphframes error: ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/3761656#M5130</link>
      <description>&lt;P&gt;I am trying to use Graphframes library to generate GraphX objects.&lt;BR /&gt;&lt;BR /&gt;Output of "%conda list" shows :&amp;nbsp;&lt;SPAN&gt;graphframes 0.6 pyhd3deb0d_1 conda-forge&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So the package is installed. But when I try to construct a GraphFrame&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;g = GraphFrame(v,edge)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I get the following error:&lt;BR /&gt;&lt;SPAN class=""&gt;Py4JJavaError&lt;/SPAN&gt;: An error occurred while calling o5762.loadClass. : java.lang.ClassNotFoundException: org.graphframes.GraphFramePythonAPI&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What do I need to get this to work?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 20:27:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/3761656#M5130</guid>
      <dc:creator>goreavin</dc:creator>
      <dc:date>2024-03-13T20:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Graphframes error: ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/3762694#M5141</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363697" data-lia-user-login="goreavin" class="lia-mention lia-mention-user"&gt;goreavin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community. I apologize for the issue you are facing.&lt;BR /&gt;&lt;BR /&gt;These are the few steps to resolve your issue:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. Include GraphFrames in Spark Session Configuration:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Even though graphframes is installed in your conda environment, it might not be included in the Spark session. You need to explicitly tell Spark to use it. Here's how:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;from pyspark.sql import SparkSession

spark = SparkSession.builder \
  .master("local[*]") \
  .config("spark.jars.packages", "graphframes:graphframes:0.6") \
  .getOrCreate()

# Now you can create your GraphFrame
g = GraphFrame(v, edge)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Explanation:&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;spark.jars.packages: This configuration tells Spark to include the JAR file for&amp;nbsp;graphframes&amp;nbsp;(version 0.6 in this case) when launching the Spark application.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2. Verify Spark Version Compatibility:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Double-check the compatibility between your Spark version and the installed graphframes version (0.6). Refer to the GraphFrames documentation for supported Spark versions for your specific graphframes version - &lt;A href="https://spark-packages.org/package/graphframes/graphframes" target="_blank" rel="noopener"&gt;link.&lt;/A&gt; There might be a mismatch causing the class not to be found.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. Reinstall or Update GraphFrames (if necessary):&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If the above steps don't work, consider reinstalling graphframes.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By following these steps, you should be able to resolve the &lt;STRONG&gt;ClassNotFoundException.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;Hope this helps you in resolving the issue. Please let me know incase if you have further queries.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 07:40:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/3762694#M5141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-14T07:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Graphframes error: ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/3765551#M5211</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363697" data-lia-user-login="goreavin" class="lia-mention lia-mention-user"&gt;goreavin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .&lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help . &lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 08:15:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/3765551#M5211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-15T08:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Graphframes error: ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/3770384#M5257</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363697" data-lia-user-login="goreavin" class="lia-mention lia-mention-user"&gt;goreavin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, will respond back with the more details and we will try to help .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 07:16:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/3770384#M5257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-18T07:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Graphframes error: ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/3793408#M5624</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;: I received a message from your support engineer with the following solutions:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Use Scala instead of Python:&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Add the library manually to the environment:&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Install the jar from maven repository. reference:&amp;nbsp;&lt;A title="" href="https://urldefense.com/v3/__https://mvnrepository.com/artifact/graphframes/graphframes/0.8.0-spark3.0-s_2.12__;!!E89GJEnVZc0!3c74C3qxnrFMPm5gtFrvfeiE5GJD_d5mIv72jNQ7zbUxAw9ZM4IF7J2hwpP_0yTQVUkcMPPsr9pQGXgPiYkCWp6zAFSC22KJhg$" target="_blank" rel="noopener noreferrer"&gt;Maven Repository: graphframes » graphframes » 0.8.0-spark3.0-s_2.12 (mvnrepository.com)&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;upload the Jar to your environment. Reference:&amp;nbsp;&lt;A title="" href="https://urldefense.com/v3/__https://learn.microsoft.com/en-us/fabric/data-engineering/environment-manage-library*public-libraries__;Iw!!E89GJEnVZc0!3c74C3qxnrFMPm5gtFrvfeiE5GJD_d5mIv72jNQ7zbUxAw9ZM4IF7J2hwpP_0yTQVUkcMPPsr9pQGXgPiYkCWp6zAFRyLYfW7A$" target="_blank" rel="noopener noreferrer"&gt;Library management in Fabric environments - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Attach the environment to your workspace. Reference:&amp;nbsp;&lt;A title="" href="https://urldefense.com/v3/__https://learn.microsoft.com/en-us/fabric/data-engineering/create-and-use-environment*attach-an-environment__;Iw!!E89GJEnVZc0!3c74C3qxnrFMPm5gtFrvfeiE5GJD_d5mIv72jNQ7zbUxAw9ZM4IF7J2hwpP_0yTQVUkcMPPsr9pQGXgPiYkCWp6zAFRhe1PU-w$" target="_blank" rel="noopener noreferrer"&gt;Create, configure, and use an environment in Microsoft Fabric - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Add this config as first cell inside your notebook:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%%configure -f
{    
    "conf": {
        "spark.jars.packages": "graphframes:graphframes:0.8.0-spark3.0-s_2.12"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solved the issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks! Avi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 08:40:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/3793408#M5624</guid>
      <dc:creator>goreavin</dc:creator>
      <dc:date>2024-03-27T08:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Graphframes error: ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/3795049#M5647</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363697" data-lia-user-login="goreavin" class="lia-mention lia-mention-user"&gt;goreavin&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Glad to know that your issue got resolved. &lt;BR /&gt;Please continue using Fabric Comunity on your further queries.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 19:14:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/3795049#M5647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-27T19:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Graphframes error: ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/5130730#M26331</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363697" data-lia-user-login="goreavin" class="lia-mention lia-mention-user"&gt;goreavin&lt;/a&gt;&amp;nbsp;your suggested solution does work for me in a Fabric Notebook even using Python.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My custom environment uses Spark 3.5 and Scala 2.12, so:&lt;BR /&gt;- I downloaded graphframes-0.8.4-spark3.5-s_2.12.jar from &lt;A title="Spark Packages graphframes" href="https://spark-packages.org/package/graphframes/graphframes" target="_blank" rel="noopener"&gt;https://spark-packages.org/package/graphframes/graphframes&lt;/A&gt;&lt;BR /&gt;- I imported it as Custom library in my custom environment.&amp;nbsp;&lt;BR /&gt;- I attached this custom environment to my notebook workspace.&amp;nbsp;&lt;BR /&gt;- I added as a first cell of my notebook:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%%configure
{
    "conf": {
        "spark.jars.packages": "graphframes:graphframes:0.8.4-spark3.5-s_2.12"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;- I added at the beginning of my PySpark cell:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from graphframes import GraphFrame
spark.sparkContext.setCheckpointDir("Files/graphframes_checkpoints")&lt;/LI-CODE&gt;&lt;P&gt;- and then I started working with graphframes in PySpark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: &lt;FONT face="courier new,courier"&gt;setCheckpointDir&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;is required by GraphFrame when calculating connected components. And t&lt;/SPAN&gt;he &lt;FONT face="courier new,courier"&gt;"Files/graphframes_checkpoints"&lt;/FONT&gt; path is relative to the default lakehouse path, so you need at least a default lakehouse attached to your notebook.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can now survive in Fabric even without SQL Server's recursive CTE support. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2026 15:56:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Graphframes-error-ClassNotFoundException/m-p/5130730#M26331</guid>
      <dc:creator>_maclura_</dc:creator>
      <dc:date>2026-03-12T15:56:32Z</dc:date>
    </item>
  </channel>
</rss>

