<?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: Calling exe from notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142853#M52033</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/202663"&gt;@nkrish&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Databricks notebooks cannot run a Windows based C sharp executable. Databricks compute runs on Linux and does not support executing native Windows exe files. Because of this, a C sharp exe cannot be called directly from a Databricks notebook. The supported pattern is to run the exe outside Databricks and integrate through a service or API, or refactor the logic so it can be executed in a cross platform way or reimplemented using Spark or Python inside Databricks.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jan 2026 14:50:23 GMT</pubDate>
    <dc:creator>mukul1409</dc:creator>
    <dc:date>2026-01-02T14:50:23Z</dc:date>
    <item>
      <title>Calling exe from notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142839#M52027</link>
      <description>&lt;P&gt;How to call exe (c-sharp code based) from data bricks notebook?&lt;/P&gt;&lt;P&gt;#csharp exe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 12:18:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142839#M52027</guid>
      <dc:creator>nkrish</dc:creator>
      <dc:date>2026-01-02T12:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calling exe from notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142842#M52028</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/202663"&gt;@nkrish&lt;/a&gt;:&amp;nbsp;Databricks clusters typically run &lt;STRONG&gt;Linux&lt;/STRONG&gt;,&amp;nbsp;so a Windows-only executable (.exe) will not run there.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Even if you port the executable for Linux, it will run in the driver directly and you might miss the distributed computing feature of the Spark.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could you please provide the following details?&lt;BR /&gt;1) purpose of .exe - what it does?&lt;BR /&gt;2) whether you need Spark&amp;nbsp;parallelism&lt;/P&gt;&lt;DIV&gt;3) your Databricks cloud and runtime version&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Jan 2026 13:30:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142842#M52028</guid>
      <dc:creator>siva-anantha</dc:creator>
      <dc:date>2026-01-02T13:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calling exe from notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142848#M52031</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/185055"&gt;@siva-anantha&lt;/a&gt;&amp;nbsp;, We are working on some migration project where some core business logics are in c# code as exe. We have 2 options either rewrite the code into pyspark or use the exe as it is. Since we have a very limited timeline, we are thinking of calling the exe as it is from notebook. Please find my response inline below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) purpose of .exe - what it does?&lt;/P&gt;&lt;P&gt;some core business logics like some calculations, filtering and brand scanning all happens in the exe&lt;BR /&gt;2) whether you need Spark&amp;nbsp;parallelism&lt;/P&gt;&lt;P&gt;Not very sure as we have not gone through the code fully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;3) your Databricks cloud and runtime version&lt;/DIV&gt;&lt;DIV&gt;Azure Databricks and Databricks Runtime is 17.x&lt;/DIV&gt;&lt;DIV&gt;If Parallelism is not needed, is it possible to execute exe if so how to do that?&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Jan 2026 14:02:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142848#M52031</guid>
      <dc:creator>nkrish</dc:creator>
      <dc:date>2026-01-02T14:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calling exe from notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142853#M52033</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/202663"&gt;@nkrish&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Databricks notebooks cannot run a Windows based C sharp executable. Databricks compute runs on Linux and does not support executing native Windows exe files. Because of this, a C sharp exe cannot be called directly from a Databricks notebook. The supported pattern is to run the exe outside Databricks and integrate through a service or API, or refactor the logic so it can be executed in a cross platform way or reimplemented using Spark or Python inside Databricks.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 14:50:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142853#M52033</guid>
      <dc:creator>mukul1409</dc:creator>
      <dc:date>2026-01-02T14:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calling exe from notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142854#M52034</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/202663"&gt;@nkrish&lt;/a&gt;: Thank you for the response&lt;BR /&gt;&lt;BR /&gt;If you don't need Spark&amp;nbsp;p&lt;SPAN&gt;arallelism, can you review these options?&lt;BR /&gt;&lt;BR /&gt;Option-1: APIfy the exe in a separate windows vm/container&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- call the API from Databricks. this call will be executed from the driver.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Option-2: Recompile exe for Linux&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - compile C# for Linux&amp;nbsp;platform&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - install .NET runtime for Linux in Databricks Runtime using init script&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - copy the exe from storage to cluster using init script&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - execute the exe using %sh or python subprocess or similar approaches in the notebook&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both are anti-patterns. Option-1 is less invasive and will take less efforts compared to Option-2.&lt;BR /&gt;&lt;BR /&gt;Once you review and understand internals of exe, think about rewrite/porting to Spark APIs for better maintenance and performance.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 14:54:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142854#M52034</guid>
      <dc:creator>siva-anantha</dc:creator>
      <dc:date>2026-01-02T14:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calling exe from notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142917#M52050</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/202663"&gt;@nkrish&lt;/a&gt;&amp;nbsp;- From my view and to have a clean flow, better to refactor the code to python or pyspark and take the advantage of databricks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jan 2026 06:13:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/142917#M52050</guid>
      <dc:creator>Sanjeeb2024</dc:creator>
      <dc:date>2026-01-04T06:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calling exe from notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/146155#M52617</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/202663"&gt;@nkrish&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Did the suggestions shared above help resolve your concern?&lt;BR /&gt;If yes, please consider marking the response that helped most as the accepted solution.&lt;BR /&gt;If you ended up using a different approach, sharing it here would be helpful for others in the community.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 17:11:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/calling-exe-from-notebook/m-p/146155#M52617</guid>
      <dc:creator>Advika</dc:creator>
      <dc:date>2026-01-30T17:11:27Z</dc:date>
    </item>
  </channel>
</rss>

