<?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 F2 Capacity. spark.stop() at the end of the notebook but still running after this command in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4091155#M3511</link>
    <description>&lt;P&gt;&amp;nbsp;I have this at the end of a notebook (And I am in F2 Capacity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Stop the Spark session&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark.stop()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But I can;t run another notebook afterwards because it thinks it is still running.&amp;nbsp; If I go into Monotor it still says in progress. i have to cancel it manually in Monitor.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I really need the stop command to work. Is there something I am doing wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Aug 2024 08:18:40 GMT</pubDate>
    <dc:creator>DebbieE</dc:creator>
    <dc:date>2024-08-09T08:18:40Z</dc:date>
    <item>
      <title>F2 Capacity. spark.stop() at the end of the notebook but still running after this command</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4091155#M3511</link>
      <description>&lt;P&gt;&amp;nbsp;I have this at the end of a notebook (And I am in F2 Capacity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Stop the Spark session&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark.stop()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But I can;t run another notebook afterwards because it thinks it is still running.&amp;nbsp; If I go into Monotor it still says in progress. i have to cancel it manually in Monitor.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I really need the stop command to work. Is there something I am doing wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Aug 2024 08:18:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4091155#M3511</guid>
      <dc:creator>DebbieE</dc:creator>
      <dc:date>2024-08-09T08:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: F2 Capacity. spark.stop() at the end of the notebook but still running after this command</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4091819#M3533</link>
      <description>&lt;P&gt;I have 4 notebooks which I want to run in a sequence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I join them together and run, It just sticks on the first Notebook and doesnt move to the next notebook&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark.stop()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at the end of each notebook. And I know they only take a couple of minutes. Why isn't it moving on?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Aug 2024 13:24:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4091819#M3533</guid>
      <dc:creator>DebbieE</dc:creator>
      <dc:date>2024-08-09T13:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: F2 Capacity. spark.stop() at the end of the notebook but still running after this command</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4091916#M3534</link>
      <description>&lt;P&gt;It seemed to run quickly this time. Maybe it was just a blip. And I have changed the connections to success ones&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 14:00:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4091916#M3534</guid>
      <dc:creator>DebbieE</dc:creator>
      <dc:date>2024-08-09T14:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: F2 Capacity. spark.stop() at the end of the notebook but still running after this command</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4093038#M3535</link>
      <description>&lt;P&gt;Thanks for sharing!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm curious why you are using spark.stop()?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm curious if it is necessary to use it or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't think it was necessary in Fabric. Did you find any information about it?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 07:34:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4093038#M3535</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-10T07:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: F2 Capacity. spark.stop() at the end of the notebook but still running after this command</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4093042#M3526</link>
      <description>&lt;P&gt;Are you running the notebook manually, or inside a data pipeline? If you are running them inside a data pipeline, perhaps you can add a wait activity between them. Perhaps wait 1 or 2 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.fourmoo.com/2024/01/10/microsoft-fabric-notebook-session-usage-explained-and-how-to-save-cus-or-billed-time/" target="_blank" rel="noopener"&gt;Microsoft Fabric – Notebook session usage explained (And how to save CU’s or billed time) - FourMoo | Fabric | Power BI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.reddit.com/r/MicrosoftFabric/comments/1eolfda/sparkstop_is_it_needed/" target="_blank" rel="noopener"&gt;spark.stop() - is it needed? : r/MicrosoftFabric (reddit.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using Notebook A to trigger Notebook B? Then I think they can share the compute resources. See links below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/microsoft-spark-utilities#notebook-utilities" target="_blank" rel="noopener"&gt;Microsoft Spark Utilities (MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://fabric.guru/using-runmultiple-to-orchastrate-notebook-execution-in-microsoft-fabric" target="_blank" rel="noopener"&gt;Using runMultiple To Orchastrate Notebook Execution in Microsoft Fabric&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also try out the&amp;nbsp;&lt;SPAN&gt;mssparkutils.session.stop() instead of spark.stop()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I haven't tried it myself.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 15:40:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4093042#M3526</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-10T15:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: F2 Capacity. spark.stop() at the end of the notebook but still running after this command</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4094694#M3556</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="76077" data-lia-user-login="DebbieE" class="lia-mention lia-mention-user"&gt;DebbieE&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;In fact, you not need to run these processing one by one. You can invoke other notebook codesnip or directly invoke/reference other notebooks by NotebookUtils functions:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities#exit-a-notebook" target="_blank"&gt;NotebookUtils (former MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you want stop all the cost of fabric capacity resource usage, it should be more suitable to 'pause' on the capacity itself at azure side.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/enterprise/pause-resume" target="_blank" rel="noopener"&gt;Pause and resume your capacity - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Update: thanks for&amp;nbsp;frithjof_v&amp;nbsp;'s &lt;SPAN&gt;reminder&lt;/SPAN&gt;, I update and modify the reference link to notebookutils.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 01:12:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4094694#M3556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-13T01:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: F2 Capacity. spark.stop() at the end of the notebook but still running after this command</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4094844#M3558</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Thanks for sharing,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the best option is to have one "master" notebook orchestrate the running of the other notebooks, as you mention (I have never tried it myself).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I think the most updated link for use in Fabric Notebook is this one: &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More specifically: &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities#reference-a-notebook" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities#reference-a-notebook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is for the Fabric Notebookutils.&lt;/P&gt;&lt;P&gt;The link you provided is for Azure Synapse Analytics. Or am I missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do however believe I have experienced that a function which was listed in Azure Synapse Analytics mssparkutils, but not listed in Fabric Notebookutils, still worked in Fabric Notebook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But according to the docs, I think Fabric Notebookutils (ref. the links in this comment) should be the most updated one for use inside Fabric?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 08:29:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/F2-Capacity-spark-stop-at-the-end-of-the-notebook-but-still/m-p/4094844#M3558</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-12T08:29:11Z</dc:date>
    </item>
  </channel>
</rss>

