cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Esteemed Contributor
Esteemed Contributor

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
Esteemed Contributor
Esteemed Contributor

Could you please try running the job on DBR 10.4?

youssefmrini
Honored Contributor III
Honored Contributor III

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

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.