<?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: Livy Error with runMultiple() DAG Chunking - InvalidHttpRequestToLivy: from cannot be less than 0 HT in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4770753#M11112</link>
    <description>&lt;P&gt;No there has been no solution provided.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jul 2025 12:51:56 GMT</pubDate>
    <dc:creator>tr5610</dc:creator>
    <dc:date>2025-07-21T12:51:56Z</dc:date>
    <item>
      <title>Livy Error with runMultiple() DAG Chunking - InvalidHttpRequestToLivy: from cannot be less than 0 HT</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4760833#M10844</link>
      <description>&lt;P&gt;I’m running into the Livy pagination bug that returns:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;InvalidHttpRequestToLivy: from cannot be less than 0 HTTP status code: 400.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Setup:&lt;BR /&gt;- Orchestrator notebook uses runMultiple() to start worker notebooks in parallel.&amp;nbsp; Job size is approx 1000 tables, so chunking is done to have a DAG for smaller table batches.&amp;nbsp; Orchestrator calls runMultiple() multiple times (once per chunk of 100 tables) -- also tried reducing to chunks of 20 tables.&lt;BR /&gt;- Each chunk launches 20 worker notebooks in parallel -- similar post said to increase concurrency and I tried that up to 40&lt;BR /&gt;- Worker (child) notebooks return audit and watermark data via mssparkutils.notebook.exit(json_data) -- If I turn off all output from worker notebooks issue stops.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;BR /&gt;After processing approx 200 tables over 15-20 minutes no matter how parallelism or chunk size is set,&amp;nbsp;&lt;BR /&gt;InvalidHttpRequestToLivy: from cannot be less than 0 HTTP status code: 400&lt;/P&gt;&lt;P&gt;Root Cause Analysis:&lt;BR /&gt;- Livy session persists across multiple runMultiple() calls.&amp;nbsp; Seems to keep the same log buffer for the entire spark session which has a fixed limit and appearance is there is no trimming.&lt;BR /&gt;- Each chunk's worker output accumulates in Livy's log buffer as it gets passed back to the orchestrator notebook.&lt;BR /&gt;- Multiple runMultiple() calls appear to corrupt Livy's cursor state for log reading&lt;BR /&gt;- Error occurs when Livy tries to read logs with invalid cursor position&lt;/P&gt;&lt;P&gt;Workarounds Attempted:&lt;BR /&gt;- Reduced worker stdout logging (spark.sparkContext.setLogLevel("ERROR"))&lt;BR /&gt;- Added delays between chunks&lt;BR /&gt;- Livy session "reset" attempts (ineffective)&lt;/P&gt;&lt;P&gt;- Increasing size of spark session through additional nodes and executors&lt;/P&gt;&lt;P&gt;- Decreasing batch size, increasing batch size, decreasing parallel workers (concurrency), increasing parallel workers&lt;/P&gt;&lt;P&gt;Question:&lt;BR /&gt;Is this a known issue? Are there proper ways to clear/reset Livy session state between runMultiple() calls, or alternative approaches for large-scale&lt;BR /&gt;parallel notebook orchestration?&lt;/P&gt;&lt;P&gt;Impact: Blocking ETL processing of 750K+ tables across 500+ customers.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jul 2025 22:53:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4760833#M10844</guid>
      <dc:creator>tr5610</dc:creator>
      <dc:date>2025-07-12T22:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Livy Error with runMultiple() DAG Chunking - InvalidHttpRequestToLivy: from cannot be less than 0 HT</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4760969#M10848</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Instead of reusing the same session for every runMultiple batch, try&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Create a &lt;/SPAN&gt;&lt;STRONG&gt;new Livy session per DAG chunk&lt;/STRONG&gt;&lt;SPAN&gt;. T&lt;/SPAN&gt;&lt;SPAN&gt;his avoids log cursor conflicts and buffer overflow across chunks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 09:25:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4760969#M10848</guid>
      <dc:creator>vrsanaidu2025</dc:creator>
      <dc:date>2025-07-13T09:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Livy Error with runMultiple() DAG Chunking - InvalidHttpRequestToLivy: from cannot be less than 0 HT</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4761209#M10854</link>
      <description>&lt;P&gt;When you say “create a new Livy session per DAG chunk,” do you mean there’s a PySpark or Fabric-native command I can run inside the same notebook to reset/reinitialize the Livy session—before calling runMultiple() again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to clarify, my current setup is entirely notebook-driven:&lt;/P&gt;&lt;P&gt;---One orchestration notebook.&lt;/P&gt;&lt;P&gt;---It uses nbutils.runMultiple() inside a for loop to submit batches (chunks).&lt;/P&gt;&lt;P&gt;---Each runMultiple() call executes a batch of worker notebooks in parallel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There’s no pipeline orchestration around it, so the notebook session itself stays open while runMultiple() runs multiple times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 00:59:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4761209#M10854</guid>
      <dc:creator>J-Mo</dc:creator>
      <dc:date>2025-07-14T00:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Livy Error with runMultiple() DAG Chunking - InvalidHttpRequestToLivy: from cannot be less than 0 HT</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4767118#M11005</link>
      <description>&lt;P&gt;Did you have any specific detail for this?&amp;nbsp; I believe the livy session and the notebook session can't be seperated.&amp;nbsp; When I forced a restart of the livy session the notebook stopped.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 14:03:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4767118#M11005</guid>
      <dc:creator>tr5610</dc:creator>
      <dc:date>2025-07-17T14:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Livy Error with runMultiple() DAG Chunking - InvalidHttpRequestToLivy: from cannot be less than 0 HT</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4770731#M11111</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="706608" data-lia-user-login="tr5610" class="lia-mention lia-mention-user"&gt;tr5610&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We would like to follow up to see if the solution provided by the community member resolved your issue. Please let us know if you need any further assistance.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1308506" data-lia-user-login="J-Mo" class="lia-mention lia-mention-user"&gt;J-Mo&lt;/a&gt;&amp;nbsp;&amp;amp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1243565" data-lia-user-login="vrsanaidu2025" class="lia-mention lia-mention-user"&gt;vrsanaidu2025&lt;/a&gt;&amp;nbsp;, thanks for your prompt response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Prashanth Are&lt;/P&gt;
&lt;P&gt;MS Fabric community support&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 12:37:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4770731#M11111</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-07-21T12:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Livy Error with runMultiple() DAG Chunking - InvalidHttpRequestToLivy: from cannot be less than 0 HT</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4770753#M11112</link>
      <description>&lt;P&gt;No there has been no solution provided.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 12:51:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4770753#M11112</guid>
      <dc:creator>tr5610</dc:creator>
      <dc:date>2025-07-21T12:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Livy Error with runMultiple() DAG Chunking - InvalidHttpRequestToLivy: from cannot be less than 0 HT</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4775501#M11218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="706608" data-lia-user-login="tr5610" class="lia-mention lia-mention-user"&gt;tr5610&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In this scenario i suggest you to raise a support ticket here. so, that they can assit you in addressing the issue you are facing. please follow below link on how to raise a support ticket:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A class="" title="https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket" href="https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket" target="_blank" rel="noreferrer noopener" aria-label="Link How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn"&gt;&lt;SPAN&gt;How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn&lt;/SPAN&gt;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Prashanth Are&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MS Fabric community support&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 17:32:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4775501#M11218</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-07-24T17:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Livy Error with runMultiple() DAG Chunking - InvalidHttpRequestToLivy: from cannot be less than 0 HT</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4775672#M11227</link>
      <description>&lt;P&gt;The solution provided by the product team was to place this line before the runMultiple to prevent the DAG orchestration from displaying its graphics.&amp;nbsp; It seems to be working and they said a full fix would be implemented soon.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;spark.conf.set("spark.notebookutils.run.progressbar.enabled", "false")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 21:06:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Livy-Error-with-runMultiple-DAG-Chunking/m-p/4775672#M11227</guid>
      <dc:creator>tr5610</dc:creator>
      <dc:date>2025-07-24T21:06:55Z</dc:date>
    </item>
  </channel>
</rss>

