-
If I have some reason to throw a logic-related error from my .Net worker code, how do I accomplish that? I want the failure to bubble out to the driver. I do NOT want the same work (in a UDF) to be retried multiple times on several different worker nodes, for the sake fault tolerance. IE. the exception indicates a logical problem that won't go away no matter how many times attempts. Sorry for the basic question. I'm hoping I can use the try/catch pattern but maybe there is another technique that I'm not aware of. I've been using spark from scala for about a year and I'm new to the .net side of spark. I'm not aware if there was a technique for accomplishing this on the scala side of things either. My exceptions eventually bubble out to the driver either way, but I'd like it to happen more quickly, without repeated attempts on multiple workers. Here is a callstack showing multiple attempts:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can change
|
Beta Was this translation helpful? Give feedback.
You can change
spark.task.maxFailures
to 1 if you don't want repeated attempts: