How to stop a EMR Notebook execution after a error in a cell

0

Hi there,

Do you know how to stop a notebook on cell error?

It seems that the normal behavior is to continue on error, but I want to stop execution after the first error or fail,

Maybe a notebook flag, or editor flag?

We are using emr run notebook api, and we think that one year before it used to stop on error cell but not anymore.

Thanks

rmis
已提問 1 年前檢視次數 201 次
1 個回答
0

Hello,

Thanks for writing on re:Post

The functionality you have explained here is available when using the PySpark Kernel within a Jupyter Notebook.

When raising an error within a cell, if that error is flagged in the run time, the notebook will not continue to run the following cells even when using the Run All Option.

When an error is met, the notebook will output the information of this error and will stop executing.

I hope the above information helped in addressing your concern

Thanks

AWS
支援工程師
已回答 1 年前
profile picture
專家
已審閱 2 天前
  • Thanks! You're right, we don't have any problem with python3 kernel, just with pyspark.

    How do you flag them in runtime? Can you do that from emr start emr notebook api or step function start emr notebook execution?

    We raise exceptions inside cells and doesn't stop notebook executions,

    Thanks

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南