cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal error: The Python kernel is unresponsive.

Data_Analytics1
Contributor III

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

The Python process exited with an unknown exit code.

The last 10 KB of the process's stderr and stdout can be found below. See driver logs for full logs.

---------------------------------------------------------------------------

Last messages on stderr:

Tue Feb 7 17:10:18 2023 Connection to spark from PID 24461

Tue Feb 7 17:10:18 2023 Initialized gateway on port 34499

Tue Feb 7 17:10:19 2023 Connected to spark.

---------------------------------------------------------------------------

Last messages on stdout:

NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.

To exit, you will have to explicitly quit this process, by either sending

"quit" from a client, or using Ctrl-\ in UNIX-like environments.

To read more about this, see https://github.com/ipython/ipython/issues/2049

17 REPLIES 17

Lakshay
Databricks Employee
Databricks Employee

Hi @Mahesh Chahare​ , What is the DBR version you are using?

Hi @Lakshay Goel​ , 11.3 LTS (includes Apache Spark 3.3.0, Scala 2.12)

please try using this configuration:

spark.databricks.python.defaultPythonRepl pythonshell

@Lakshay Goel​ , I have updated it on the cluster. I'll update you whether it works for me or not. Thanks !

sure

​@Lakshay Goel

Am also facing same issues.​

Hi @Manoj Kumar​ , 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

Yeah it's working thanks @Lakshay Goel​ ​

Happy to help!

308633
New Contributor III

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

Lakshay
Databricks Employee
Databricks Employee

Could you please try running the job on DBR 10.4?

youssefmrini
Databricks Employee
Databricks Employee

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.

Anonymous
Not applicable

Hi @Mahesh Chahare​ 

Hope everything is going great.

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. 

Cheers!

rnby_mike
New Contributor II

Hello,

I have the same problem. After upgrading from 10.5 to 12.2 we started to face this issue. Setting

spark.databricks.python.defaultPythonRepl pythonshell didn't help

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group