<?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: Zombie .Net Spark Databricks Job (CourseGrainedExecutorBackend) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/zombie-net-spark-databricks-job-coursegrainedexecutorbackend/m-p/33288#M24319</link>
    <description>&lt;P&gt;Thank you @Jose Gonzalez​&amp;nbsp; than shall I try removing those operations?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 19:04:17 GMT</pubDate>
    <dc:creator>timothy_uk</dc:creator>
    <dc:date>2022-01-06T19:04:17Z</dc:date>
    <item>
      <title>Zombie .Net Spark Databricks Job (CourseGrainedExecutorBackend)</title>
      <link>https://community.databricks.com/t5/data-engineering/zombie-net-spark-databricks-job-coursegrainedexecutorbackend/m-p/33285#M24316</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;P&gt;Nodes: Standard_E8s_v3&lt;/P&gt;&lt;P&gt;Databricks Runtime: 9.0&lt;/P&gt;&lt;P&gt;.NET for Apache Spark 2.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm invoking spark submit to run a .Net Spark job hosted in Azure Databricks. The job is written in C#.Net with its only transformation and action, reading a CSV then displaying its records. The job has been running swimingly for months until recently where I've noticed it will not self-terminate after completion. The job perform the work then remain active indefinitely until I manually terminate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the app's code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SparkSession spark = SparkSession
        .Builder()
        .AppName("My App Name")
        .GetOrCreate();
&amp;nbsp;
string sourcePath = args[0];
&amp;nbsp;
DataFrame df = spark
        .Read()
        .Option("header", "true")
        .Option("quote", "\"")
        .Csv(sourcePath);
&amp;nbsp;
df.Show();
&amp;nbsp;
spark.Stop();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've attached a dump of the driver's Log4j output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit 16/12/2021: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is possibly related to the workers refusing to shutdown after completing their work as indicated by the workers' stderr ouput final entry...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;21/12/16 00:23:10 INFO DBFS: Initialized DBFS with DBFSV2 as the delegate.&lt;/P&gt;&lt;P&gt;21/12/16 00:23:10 INFO Utils: resolved command to be run: WrappedArray(getconf, PAGESIZE)&lt;/P&gt;&lt;P&gt;21/12/16 00:23:10 INFO FileScanRDD: Reading File path: dbfs:/mnt/opstats/raw/snakes/intercom.csv, range: 0-695442, partition values: [empty row], modificationTime: 1639438344000.&lt;/P&gt;&lt;P&gt;21/12/16 00:23:10 INFO Executor: Finished task 0.0 in stage 0.0 (TID 0). 1703 bytes result sent to driver&lt;/P&gt;&lt;P&gt;21/12/16 00:23:16 INFO CoarseGrainedExecutorBackend: Driver commanded a shutdown&lt;/P&gt;&lt;P&gt;21/12/16 00:23:16 INFO MemoryStore: MemoryStore cleared&lt;/P&gt;&lt;P&gt;21/12/16 00:23:16 INFO BlockManager: BlockManager stopped&lt;/P&gt;&lt;P&gt;&lt;U&gt;21/12/16 00:23:16 ERROR CoarseGrainedExecutorBackend: RECE&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anybody able to shed some light on this mysterious issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 16:19:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/zombie-net-spark-databricks-job-coursegrainedexecutorbackend/m-p/33285#M24316</guid>
      <dc:creator>timothy_uk</dc:creator>
      <dc:date>2021-12-13T16:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Zombie .Net Spark Databricks Job (CourseGrainedExecutorBackend)</title>
      <link>https://community.databricks.com/t5/data-engineering/zombie-net-spark-databricks-job-coursegrainedexecutorbackend/m-p/33287#M24318</link>
      <description>&lt;P&gt;Hi @Timothy Lin​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will recommend to not use spark.stop()&amp;nbsp;or&amp;nbsp;System.exit(0) in your code because it will explicitly stop the Spark context but the graceful shutdown and handshake with  databricks' job service does not happen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 01:22:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/zombie-net-spark-databricks-job-coursegrainedexecutorbackend/m-p/33287#M24318</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-01-06T01:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Zombie .Net Spark Databricks Job (CourseGrainedExecutorBackend)</title>
      <link>https://community.databricks.com/t5/data-engineering/zombie-net-spark-databricks-job-coursegrainedexecutorbackend/m-p/33288#M24319</link>
      <description>&lt;P&gt;Thank you @Jose Gonzalez​&amp;nbsp; than shall I try removing those operations?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 19:04:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/zombie-net-spark-databricks-job-coursegrainedexecutorbackend/m-p/33288#M24319</guid>
      <dc:creator>timothy_uk</dc:creator>
      <dc:date>2022-01-06T19:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Zombie .Net Spark Databricks Job (CourseGrainedExecutorBackend)</title>
      <link>https://community.databricks.com/t5/data-engineering/zombie-net-spark-databricks-job-coursegrainedexecutorbackend/m-p/33289#M24320</link>
      <description>&lt;P&gt;Yes, you need to remove it.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 01:29:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/zombie-net-spark-databricks-job-coursegrainedexecutorbackend/m-p/33289#M24320</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-01-12T01:29:05Z</dc:date>
    </item>
  </channel>
</rss>

