You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by 陈晓宇 <xy...@gmail.com> on 2020/09/11 05:07:50 UTC
[DISCUSS] Spark cannot identify the problem executor
Hello all,
We've been using spark 2.3 with blacklist enabled and often meet the
problem that when executor A has some problem(like connection issue). Tasks
on executor B, executor C will fail saying cannot read from executor A.
Finally the job will fail due to task on executor B failed 4 times.
I wonder whether there is any existing fix or discussions how to identify
Executor A as the problem node.
Thanks
Re: [DISCUSS] Spark cannot identify the problem executor
Posted by roseyrathod456 <ro...@gmail.com>.
In spark
<http://www.orienit.com/courses/spark-and-scala-training-in-hyderabad> 2.3
with blacklist enabled this is a common problem when executor A has some
problem, for instance let’s say there’s some connection issue. Tasks on
executor B, executor C will fail saying cannot read from executor A. This
would make the job fail due to task on executor B failed 4 times.
--
Sent from: http://apache-spark-user-list.1001560.n3.nabble.com/
---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org
Re: [DISCUSS] Spark cannot identify the problem executor
Posted by Yi Wu <yi...@databricks.com>.
The FetchFailed error of Task B will be forwarded to DAGScheduler too.
The FetchFailed already means the output missing of the stage. So
DAGScheduler will reschedule the upstream stage, which would reschedule the
upstream task of Task B at the end.
On Mon, Sep 14, 2020 at 10:39 AM 陈晓宇 <xy...@gmail.com> wrote:
> Thanks Yi Wu and Sean. Here I mean shuffle data, and without shuffle
> service.
>
> spark.blacklist.application.fetchFailure.enabled=true; seems to be the
> answer and I was not noticed about it, thanks for pointing it out. And I
> will give a try.
>
> However I doubt how it would work: when Task B reported FetchFailed, this
> blacklist flag can be used to identify executor A, and tasks will not be
> scheduled to executor A any more. But would the upstream task for Task
> B(which was previously running on executor A) be re-scheduled by DAG
> scheduler? The DAG scheduler only reschedule a task unless it thinks the
> output of the task is missing(Please correct me if I am wrong). And unless
> executor A failed to report heartbeat for a timeout period, the driver
> still believe the output are there on executor A.
>
> Thanks again.
>
> Yi Wu <yi...@databricks.com> 于2020年9月11日周五 下午9:24写道:
>
>> What do you mean by "read from executor A"? I can think of several paths
>> for an executor to read something from another remote executor:
>>
>> 1. shuffle data
>> If the executor fails to fetch the shuffle data, I think it will result
>> in the FetchFiled for the task. For this case, blacklist can identify the
>> problematic executor A
>> if spark.blacklist.application.fetchFailure.enabled=true;
>>
>> 2. RDD block
>> If the executor fails to fetch RDD blocks, I think the task would just do
>> the computation by itself instead of failing.
>>
>> 3. Broadcast block
>> If the executor fails to fetch the broadcast block, the task seems to
>> fail in this case and blacklist doesn't handle it well.
>>
>> Thanks,
>> Yi
>>
>> On Fri, Sep 11, 2020 at 8:43 PM Sean Owen <sr...@gmail.com> wrote:
>>
>>> -dev, +user
>>> Executors do not communicate directly, so I don't think that's quite
>>> what you are seeing. You'd have to clarify.
>>>
>>> On Fri, Sep 11, 2020 at 12:08 AM 陈晓宇 <xy...@gmail.com> wrote:
>>> >
>>> > Hello all,
>>> >
>>> > We've been using spark 2.3 with blacklist enabled and often meet the
>>> problem that when executor A has some problem(like connection issue). Tasks
>>> on executor B, executor C will fail saying cannot read from executor A.
>>> Finally the job will fail due to task on executor B failed 4 times.
>>> >
>>> > I wonder whether there is any existing fix or discussions how to
>>> identify Executor A as the problem node.
>>> >
>>> > Thanks
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe e-mail: dev-unsubscribe@spark.apache.org
>>>
>>>
Re: [DISCUSS] Spark cannot identify the problem executor
Posted by Yi Wu <yi...@databricks.com>.
What do you mean by "read from executor A"? I can think of several paths
for an executor to read something from another remote executor:
1. shuffle data
If the executor fails to fetch the shuffle data, I think it will result in
the FetchFiled for the task. For this case, blacklist can identify the
problematic executor A
if spark.blacklist.application.fetchFailure.enabled=true;
2. RDD block
If the executor fails to fetch RDD blocks, I think the task would just do
the computation by itself instead of failing.
3. Broadcast block
If the executor fails to fetch the broadcast block, the task seems to fail
in this case and blacklist doesn't handle it well.
Thanks,
Yi
On Fri, Sep 11, 2020 at 8:43 PM Sean Owen <sr...@gmail.com> wrote:
> -dev, +user
> Executors do not communicate directly, so I don't think that's quite
> what you are seeing. You'd have to clarify.
>
> On Fri, Sep 11, 2020 at 12:08 AM 陈晓宇 <xy...@gmail.com> wrote:
> >
> > Hello all,
> >
> > We've been using spark 2.3 with blacklist enabled and often meet the
> problem that when executor A has some problem(like connection issue). Tasks
> on executor B, executor C will fail saying cannot read from executor A.
> Finally the job will fail due to task on executor B failed 4 times.
> >
> > I wonder whether there is any existing fix or discussions how to
> identify Executor A as the problem node.
> >
> > Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe e-mail: dev-unsubscribe@spark.apache.org
>
>
Re: [DISCUSS] Spark cannot identify the problem executor
Posted by Sean Owen <sr...@gmail.com>.
-dev, +user
Executors do not communicate directly, so I don't think that's quite
what you are seeing. You'd have to clarify.
On Fri, Sep 11, 2020 at 12:08 AM 陈晓宇 <xy...@gmail.com> wrote:
>
> Hello all,
>
> We've been using spark 2.3 with blacklist enabled and often meet the problem that when executor A has some problem(like connection issue). Tasks on executor B, executor C will fail saying cannot read from executor A. Finally the job will fail due to task on executor B failed 4 times.
>
> I wonder whether there is any existing fix or discussions how to identify Executor A as the problem node.
>
> Thanks
---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org
Re: [DISCUSS] Spark cannot identify the problem executor
Posted by Sean Owen <sr...@gmail.com>.
-dev, +user
Executors do not communicate directly, so I don't think that's quite
what you are seeing. You'd have to clarify.
On Fri, Sep 11, 2020 at 12:08 AM 陈晓宇 <xy...@gmail.com> wrote:
>
> Hello all,
>
> We've been using spark 2.3 with blacklist enabled and often meet the problem that when executor A has some problem(like connection issue). Tasks on executor B, executor C will fail saying cannot read from executor A. Finally the job will fail due to task on executor B failed 4 times.
>
> I wonder whether there is any existing fix or discussions how to identify Executor A as the problem node.
>
> Thanks
---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org
Re: [DISCUSS] Spark cannot identify the problem executor
Posted by attilapiros <pi...@gmail.com>.
Hi,
There is an existing way to handle this situation. Those tasks will become
zombie tasks [1] and they should not be counted into the tasks failures
[2]. Even the shuffle blocks should be unregistered for the lost executor,
although the lost executor might be already cached as a mapoutput in the
other executors [3] which might generate new fetch failures.
Check the mentioned code parts and run Spark with debug enabled for this
classes to investigate this further. Reading the log and the looking the
code together will help you a lot. And consider using a fresh Spark as there
were changes in this area.
Important: You can avoid this problem altogether by using the external
shuffle service.
If you happen to be on YARN, please check this link [4].
When the external shuffle service is enabled then shuffle blocks won't be
lost with the dying executor as the blocks can be served by the shuffle
service which is running on the same host where the executor was.
Best Regards,
Attila
[1]
https://github.com/apache/spark/blob/branch-2.3/core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala#L812
[2]
https://github.com/apache/spark/blob/branch-2.3/core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala#L871
[3]
https://github.com/apache/spark/blob/branch-2.3/core/src/main/scala/org/apache/spark/MapOutputTracker.scala#L664
[4]
https://spark.apache.org/docs/2.3.0/running-on-yarn.html#configuring-the-external-shuffle-service
--
Sent from: http://apache-spark-developers-list.1001551.n3.nabble.com/
---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org