<?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: Fatal error: The Python kernel is unresponsive. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9819#M5118</link>
    <description>&lt;P&gt;Happy to help!&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 11:10:01 GMT</pubDate>
    <dc:creator>Lakshay</dc:creator>
    <dc:date>2023-02-17T11:10:01Z</dc:date>
    <item>
      <title>Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9808#M5107</link>
      <description>&lt;P&gt;I am using MultiThread in this job which creates 8 parallel jobs. It fails for few times in a day and sometimes stuck in any of the Python notebook cell process. Here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Python process exited with an unknown exit code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last 10 KB of the process's stderr and stdout can be found below. See driver logs for full logs.&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Last messages on stderr:&lt;/P&gt;&lt;P&gt;Tue Feb  7 17:10:18 2023 Connection to spark from PID  24461&lt;/P&gt;&lt;P&gt;Tue Feb  7 17:10:18 2023 Initialized gateway on port 34499&lt;/P&gt;&lt;P&gt;Tue Feb  7 17:10:19 2023 Connected to spark.&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Last messages on stdout:&lt;/P&gt;&lt;P&gt;NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To exit, you will have to explicitly quit this process, by either sending&lt;/P&gt;&lt;P&gt;"quit" from a client, or using Ctrl-\ in UNIX-like environments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read more about this, see &lt;A href="https://github.com/ipython/ipython/issues/2049" target="test_blank"&gt;https://github.com/ipython/ipython/issues/2049&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 05:59:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9808#M5107</guid>
      <dc:creator>Data_Analytics1</dc:creator>
      <dc:date>2023-02-08T05:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9809#M5108</link>
      <description>&lt;P&gt;Hi @Mahesh Chahare​&amp;nbsp;, What is the DBR version you are using?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:31:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9809#M5108</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2023-02-08T13:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9810#M5109</link>
      <description>&lt;P&gt;Hi @Lakshay Goel​&amp;nbsp;, 11.3 LTS (includes Apache Spark 3.3.0, Scala 2.12)&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:33:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9810#M5109</guid>
      <dc:creator>Data_Analytics1</dc:creator>
      <dc:date>2023-02-08T13:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9811#M5110</link>
      <description>&lt;P&gt;please try using this configuration:&lt;/P&gt;&lt;P&gt;spark.databricks.python.defaultPythonRepl pythonshell&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:39:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9811#M5110</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2023-02-08T13:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9812#M5111</link>
      <description>&lt;P&gt;@Lakshay Goel​&amp;nbsp;, I have updated it on the cluster. I'll update you whether it works for me or not. Thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:54:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9812#M5111</guid>
      <dc:creator>Data_Analytics1</dc:creator>
      <dc:date>2023-02-08T13:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9813#M5112</link>
      <description>&lt;P&gt;sure&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 14:02:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9813#M5112</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2023-02-08T14:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9814#M5113</link>
      <description>&lt;P&gt;​@Lakshay Goel&lt;/P&gt;&lt;P&gt;Am also facing same issues.​&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:31:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9814#M5113</guid>
      <dc:creator>Manoj12421</dc:creator>
      <dc:date>2023-02-09T19:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9815#M5114</link>
      <description>&lt;P&gt;Hi @Manoj Kumar​&amp;nbsp;, If you are facing this issue on DBR 11.x, you can enable the same configuration as above i.e. spark.databricks.python.defaultPythonRepl pythonshell&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 10:52:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9815#M5114</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2023-02-10T10:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9816#M5115</link>
      <description>&lt;P&gt;Hello We are also facing the same issue, did check by enabling the spark.databricks.python.defaultPythonRepl pythonshell , the issue has not been solved yet&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 06:22:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9816#M5115</guid>
      <dc:creator>308633</dc:creator>
      <dc:date>2023-02-13T06:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9817#M5116</link>
      <description>&lt;P&gt;Could you please try running the job on DBR 10.4?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 12:58:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9817#M5116</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2023-02-13T12:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9818#M5117</link>
      <description>&lt;P&gt;Yeah it's working thanks @Lakshay Goel​&amp;nbsp;​&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 04:58:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9818#M5117</guid>
      <dc:creator>Manoj12421</dc:creator>
      <dc:date>2023-02-17T04:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9819#M5118</link>
      <description>&lt;P&gt;Happy to help!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 11:10:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9819#M5118</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2023-02-17T11:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9820#M5119</link>
      <description>&lt;P&gt;If you do face cluster issues. Make sure to first, restart the cluster if this one was running for a long time to get the patches, then if you can use the latest runtime. If the issue is still persistent open a ticket.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 13:44:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9820#M5119</guid>
      <dc:creator>youssefmrini</dc:creator>
      <dc:date>2023-02-24T13:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9821#M5120</link>
      <description>&lt;P&gt;Hi @Mahesh Chahare​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope everything is going great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 07:33:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9821#M5120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-08T07:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9822#M5121</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the same problem. After upgrading from 10.5 to 12.2 we started to face this issue. Setting &lt;/P&gt;&lt;P&gt;&lt;I&gt;spark.databricks.python.defaultPythonRepl pythonshell&lt;/I&gt; didn't help&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 15:52:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9822#M5121</guid>
      <dc:creator>rnby_mike</dc:creator>
      <dc:date>2023-04-24T15:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9823#M5122</link>
      <description>&lt;P&gt;We are also facing the same issue.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 09:35:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9823#M5122</guid>
      <dc:creator>deedstoke</dc:creator>
      <dc:date>2023-04-25T09:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9824#M5123</link>
      <description>&lt;P&gt;Unresponsive&amp;nbsp;Python&amp;nbsp;notebooks&amp;nbsp;or&amp;nbsp;cancelled&amp;nbsp;commands&amp;nbsp;could&amp;nbsp;be&amp;nbsp;the&amp;nbsp;cause&amp;nbsp;of&amp;nbsp;"Fatal&amp;nbsp;error:&amp;nbsp;The&amp;nbsp;Python&amp;nbsp;kernel&amp;nbsp;is&amp;nbsp;unresponsive."&amp;nbsp;This&amp;nbsp;can&amp;nbsp;be&amp;nbsp;caused&amp;nbsp;by&amp;nbsp;a&amp;nbsp;number&amp;nbsp;of&amp;nbsp;problems,&amp;nbsp;such&amp;nbsp;as&amp;nbsp;metastore&amp;nbsp;connectivity&amp;nbsp;issues&amp;nbsp;or&amp;nbsp;conflicting&amp;nbsp;libraries.&amp;nbsp; To troubleshoot this issue, you can check for metastore connectivity and review the Cluster cancels Python command execution due to library conflict KB article for more information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://kb.databricks.com/python-command-cancelled" target="test_blank"&gt;https://kb.databricks.com/python-command-cancelled&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 20:21:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9824#M5123</guid>
      <dc:creator>luis_herrera</dc:creator>
      <dc:date>2023-04-27T20:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: The Python kernel is unresponsive.</title>
      <link>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9825#M5124</link>
      <description>&lt;P&gt;Hey, it seems that the issue is related to the driver undergoing a memory bottleneck, which causes it to crash with an out of memory (OOM) condition and gets restarted or becomes unresponsive due to frequent full garbage collection. The reason for the memory bottleneck can be, among others that 1) The driver instance type is not optimal for the load executed on the driver, 2) there are memory-intensive operations executed on the driver, or many notebooks or jobs are running in parallel on the same cluster. The solution varies from case to case, but the easiest way to resolve the issue in the absence of specific details is to increase the driver's memory. Other points to consider include avoiding memory-intensive operations like collect() operator, which brings a large amount of data to the driver, conversion of a large DataFrame to Pandas, and running batch jobs on a shared interactive cluster. It is also recommended to distribute the workloads into different clusters. (&lt;A href="https://kb.databricks.com/jobs/driver-unavailable" alt="https://kb.databricks.com/jobs/driver-unavailable" target="_blank"&gt;https://kb.databricks.com/jobs/driver-unavailable&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information on troubleshooting unresponsive Python notebooks or canceled commands, please refer to the Troubleshooting unresponsive Python notebooks or canceled commands article in the Databricks documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Check #DAIS2023 talks as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 15:48:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/fatal-error-the-python-kernel-is-unresponsive/m-p/9825#M5124</guid>
      <dc:creator>luis_herrera</dc:creator>
      <dc:date>2023-04-28T15:48:37Z</dc:date>
    </item>
  </channel>
</rss>

