<?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 Code on cluster runs idefinitely in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/code-on-cluster-runs-idefinitely/m-p/160769#M54947</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Ive created a custom cluster - m4.large. When i try to execute some code in this cluster the behaviour is as follows:&lt;/P&gt;&lt;P&gt;- Cluster starts, have running status&lt;/P&gt;&lt;P&gt;- I run code, for example print("Hello")&lt;/P&gt;&lt;P&gt;- Code runs indefinitely&lt;/P&gt;&lt;P&gt;- I click interrupt, it stops after long time&lt;/P&gt;&lt;P&gt;- When code is stopped, next code execution runs fine&lt;/P&gt;&lt;P&gt;But this is about python, SQL dont run at all, even SELECT 1; query.&lt;/P&gt;&lt;P&gt;Can someone tell me what can be an issue?&lt;/P&gt;</description>
    <pubDate>Sun, 28 Jun 2026 08:51:46 GMT</pubDate>
    <dc:creator>darek554</dc:creator>
    <dc:date>2026-06-28T08:51:46Z</dc:date>
    <item>
      <title>Code on cluster runs idefinitely</title>
      <link>https://community.databricks.com/t5/data-engineering/code-on-cluster-runs-idefinitely/m-p/160769#M54947</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Ive created a custom cluster - m4.large. When i try to execute some code in this cluster the behaviour is as follows:&lt;/P&gt;&lt;P&gt;- Cluster starts, have running status&lt;/P&gt;&lt;P&gt;- I run code, for example print("Hello")&lt;/P&gt;&lt;P&gt;- Code runs indefinitely&lt;/P&gt;&lt;P&gt;- I click interrupt, it stops after long time&lt;/P&gt;&lt;P&gt;- When code is stopped, next code execution runs fine&lt;/P&gt;&lt;P&gt;But this is about python, SQL dont run at all, even SELECT 1; query.&lt;/P&gt;&lt;P&gt;Can someone tell me what can be an issue?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2026 08:51:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/code-on-cluster-runs-idefinitely/m-p/160769#M54947</guid>
      <dc:creator>darek554</dc:creator>
      <dc:date>2026-06-28T08:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Code on cluster runs idefinitely</title>
      <link>https://community.databricks.com/t5/data-engineering/code-on-cluster-runs-idefinitely/m-p/160770#M54948</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The fact that &lt;/SPAN&gt;&lt;SPAN&gt;print("Hello")&lt;/SPAN&gt;&lt;SPAN&gt; eventually works but &lt;/SPAN&gt;&lt;SPAN&gt;SELECT 1&lt;/SPAN&gt;&lt;SPAN&gt; never completes suggests the cluster may be running but not fully initialized for Spark workloads.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A few things I’d check first:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Cluster &lt;/SPAN&gt;&lt;SPAN&gt;Event Log&lt;/SPAN&gt;&lt;SPAN&gt; for any provisioning or startup errors.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Spark UI → Executors&lt;/SPAN&gt;&lt;SPAN&gt; to confirm workers/executors are actually coming up.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Driver logs for startup exceptions or connectivity issues.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Whether this is a &lt;/SPAN&gt;&lt;SPAN&gt;single-node&lt;/SPAN&gt;&lt;SPAN&gt; cluster or a cluster with separate workers.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;One other thing that stands out is the use of &lt;/SPAN&gt;&lt;SPAN&gt;m4.large&lt;/SPAN&gt;&lt;SPAN&gt;, which is a fairly old instance family. If possible, try spinning up a small cluster on a newer instance type (for example m5 or m6 generation) and see if the behavior changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, which Databricks Runtime version are you running, and does the issue occur immediately after cluster startup or only after the cluster has been idle for some time?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jun 2026 09:53:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/code-on-cluster-runs-idefinitely/m-p/160770#M54948</guid>
      <dc:creator>Yogasathyandrun</dc:creator>
      <dc:date>2026-06-28T09:53:24Z</dc:date>
    </item>
  </channel>
</rss>

