spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saisai Shao (JIRA)" <>
Subject [jira] [Commented] (SPARK-16146) Spark application failed by Yarn preempting
Date Thu, 23 Jun 2016 07:10:16 GMT


Saisai Shao commented on SPARK-16146:

If it is due to preemption, AM log will show the details of preemption executors. Also preempted
executors will not count into failed executors, so the application should be OK. Besides from
my understanding the exception you met is expected when preemption occurs (some RPC message
cannot be sent due to executor preempted).

So from my understanding of the code, preemption will not lead to application failure, would
you please provide some more useful information, it is hard to find out the problems only
from this limited exception stack information.

Also from my knowledge, yarn preemption should not happen frequently, only when other queue's
resource is not enough for apps to run. In your case preemption happens quite frequently,
does it mean your YARN capacity scheduler is not well configured?

> Spark application failed by Yarn preempting
> -------------------------------------------
>                 Key: SPARK-16146
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>    Affects Versions: 1.6.1
>         Environment: Amazon EC2, centos 6.6,
> Spark-1.6.1-bin-hadoop-2.6(binary from spark official web), Hadoop 2.7.2, preemption
and dynamic allocation enabled.
>            Reporter: Cong Feng
> Hi,
> We are setting up our Spark cluster on amz ec2. We are using Spark Yarn client mode,
which is Spark-1.6.1-bin-hadoop-2.6(binary from spark official web) and Hadoop 2.7.2. We also
enable preemption, dynamic allocation and spark.shuffle.service.enabled.
> During our test we found our Spark application frequently get killed when the preemption
happened. Mostly seems driver trying to send rpc to executor which has been preempted before,
also there are some connect rest by peer exceptions which also cause job failed Below are
the typical exceptions we found:
> 16/06/22 08:13:30 ERROR spark.ContextCleaner: Error cleaning RDD 49
> Failed to send RPC 5721681506291542850 to
>         at$3.operationComplete(
>         at$3.operationComplete(
>         at io.netty.util.concurrent.DefaultPromise.notifyListener0(
>         at io.netty.util.concurrent.DefaultPromise.notifyListeners(
>         at io.netty.util.concurrent.DefaultPromise.tryFailure(
>         at$AbstractUnsafe.safeSetFailure(
>         at$AbstractUnsafe.write(
>         at$HeadContext.write(
>         at
>         at$1900(
>         at$AbstractWriteTask.write(
>         at$WriteAndFlushTask.write(
>         at$
>         at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(
>         at
>         at io.netty.util.concurrent.SingleThreadEventExecutor$
>         at
> Caused by: java.nio.channels.ClosedChannelException
> And 
> 16/06/19 22:33:14 INFO storage.BlockManager: Removing RDD 122
> 16/06/19 22:33:14 WARN server.TransportChannelHandler: Exception in connection from
> Connection reset by peer
>         at Method)
>         at
>         at
>         at
>         at
>         at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(
>         at io.netty.buffer.AbstractByteBuf.writeBytes(
>         at
>         at$
>         at
>         at
>         at
>         at
>         at io.netty.util.concurrent.SingleThreadEventExecutor$
>         at
> 16/06/19 22:33:14 ERROR client.TransportResponseHandler: Still have 2 requests outstanding
when connection from is closed.
> It happens both to capacity scheduler and fair scheduler. The wired thing is when we
rolled back to Spark 1.4.1, this issue magically disappeared and we can do the preemption
> But we still wants to deploy with Spark 1.6.1. Is this a bug or something we can fixed.
Any ideas will be great helpful to us.
> Thanks

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message