You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by "wyphao.2007" <wy...@163.com> on 2015/04/20 04:40:27 UTC

Question about recovery from checkpoint exception[SPARK-6892]

Hi, 
   When I recovery from checkpoint in yarn-cluster mode using Spark Streaming, I found it will reuse the application id (In my case is application_1428664056212_0016) before falied to write spark eventLog, But now my application id is application_1428664056212_0017,then spark write eventLog will falied, the stacktrace as follow:
15/04/14 10:14:01 WARN util.ShutdownHookManager: ShutdownHook '$anon$3' failed, java.io.IOException: Target log file already exists (hdfs://mycluster/spark-logs/eventLog/application_1428664056212_0016)
java.io.IOException: Target log file already exists (hdfs://mycluster/spark-logs/eventLog/application_1428664056212_0016)
	at org.apache.spark.scheduler.EventLoggingListener.stop(EventLoggingListener.scala:201)
	at org.apache.spark.SparkContext$$anonfun$stop$4.apply(SparkContext.scala:1388)
	at org.apache.spark.SparkContext$$anonfun$stop$4.apply(SparkContext.scala:1388)
	at scala.Option.foreach(Option.scala:236)
	at org.apache.spark.SparkContext.stop(SparkContext.scala:1388)
	at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$3.run(ApplicationMaster.scala:107)
	at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:54)
Is someone can help me, The issue is SPARK-6892.
thanks




Re:Re: Question about recovery from checkpoint exception[SPARK-6892]

Posted by "wyphao.2007" <wy...@163.com>.
Hi Sean Owen, Thank you for your attention.


I know spark.hadoop.validateOutputSpecs. 


I restart the job, the application id is application_1428664056212_0017 and it recovery from checkpoint, and it will write eventLog into application_1428664056212_0016 dir, I think it shoud write to application_1428664056212_0017 not application_1428664056212_0016.



At 2015-04-20 11:46:12,"Sean Owen" <so...@cloudera.com> wrote:
>This is why spark.hadoop.validateOutputSpecs exists, really:
>https://spark.apache.org/docs/latest/configuration.html
>
>On Mon, Apr 20, 2015 at 3:40 AM, wyphao.2007 <wy...@163.com> wrote:
>> Hi,
>>    When I recovery from checkpoint in yarn-cluster mode using Spark Streaming, I found it will reuse the application id (In my case is application_1428664056212_0016) before falied to write spark eventLog, But now my application id is application_1428664056212_0017,then spark write eventLog will falied, the stacktrace as follow:
>> 15/04/14 10:14:01 WARN util.ShutdownHookManager: ShutdownHook '$anon$3' failed, java.io.IOException: Target log file already exists (hdfs://mycluster/spark-logs/eventLog/application_1428664056212_0016)
>> java.io.IOException: Target log file already exists (hdfs://mycluster/spark-logs/eventLog/application_1428664056212_0016)
>>         at org.apache.spark.scheduler.EventLoggingListener.stop(EventLoggingListener.scala:201)
>>         at org.apache.spark.SparkContext$$anonfun$stop$4.apply(SparkContext.scala:1388)
>>         at org.apache.spark.SparkContext$$anonfun$stop$4.apply(SparkContext.scala:1388)
>>         at scala.Option.foreach(Option.scala:236)
>>         at org.apache.spark.SparkContext.stop(SparkContext.scala:1388)
>>         at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$3.run(ApplicationMaster.scala:107)
>>         at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:54)
>> Is someone can help me, The issue is SPARK-6892.
>> thanks
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@spark.apache.org
>For additional commands, e-mail: dev-help@spark.apache.org
>

Re: Question about recovery from checkpoint exception[SPARK-6892]

Posted by Sean Owen <so...@cloudera.com>.
This is why spark.hadoop.validateOutputSpecs exists, really:
https://spark.apache.org/docs/latest/configuration.html

On Mon, Apr 20, 2015 at 3:40 AM, wyphao.2007 <wy...@163.com> wrote:
> Hi,
>    When I recovery from checkpoint in yarn-cluster mode using Spark Streaming, I found it will reuse the application id (In my case is application_1428664056212_0016) before falied to write spark eventLog, But now my application id is application_1428664056212_0017,then spark write eventLog will falied, the stacktrace as follow:
> 15/04/14 10:14:01 WARN util.ShutdownHookManager: ShutdownHook '$anon$3' failed, java.io.IOException: Target log file already exists (hdfs://mycluster/spark-logs/eventLog/application_1428664056212_0016)
> java.io.IOException: Target log file already exists (hdfs://mycluster/spark-logs/eventLog/application_1428664056212_0016)
>         at org.apache.spark.scheduler.EventLoggingListener.stop(EventLoggingListener.scala:201)
>         at org.apache.spark.SparkContext$$anonfun$stop$4.apply(SparkContext.scala:1388)
>         at org.apache.spark.SparkContext$$anonfun$stop$4.apply(SparkContext.scala:1388)
>         at scala.Option.foreach(Option.scala:236)
>         at org.apache.spark.SparkContext.stop(SparkContext.scala:1388)
>         at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$3.run(ApplicationMaster.scala:107)
>         at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:54)
> Is someone can help me, The issue is SPARK-6892.
> thanks
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@spark.apache.org
For additional commands, e-mail: dev-help@spark.apache.org