[jira] [Commented] (SPARK-5594) SparkException: Failed to get broadcast (TorrentBroadcast)

2018-04-24 Thread Spark User (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-5594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16451666#comment-16451666
 ] 

Spark User commented on SPARK-5594:
---

In my case, this issue was happening when spark context doesn't close 
successfully. When spark context closes abruptly, the files in spark-local and 
spark-worker directories are left uncleaned. The next time any job is run, the 
broadcast exception occurs. I managed a workaround by redirecting spark-worker 
and spark-local outputs to specific folders and cleaning them up in case the 
spark context doesn't close successfully.

> SparkException: Failed to get broadcast (TorrentBroadcast)
> --
>
> Key: SPARK-5594
> URL: https://issues.apache.org/jira/browse/SPARK-5594
> Project: Spark
>  Issue Type: Bug
>  Components: Spark Core
>Affects Versions: 1.2.0, 1.3.0
>Reporter: John Sandiford
>Priority: Critical
>
> I am uncertain whether this is a bug, however I am getting the error below 
> when running on a cluster (works locally), and have no idea what is causing 
> it, or where to look for more information.
> Any help is appreciated.  Others appear to experience the same issue, but I 
> have not found any solutions online.
> Please note that this only happens with certain code and is repeatable, all 
> my other spark jobs work fine.
> {noformat}
> ERROR TaskSetManager: Task 3 in stage 6.0 failed 4 times; aborting job
> Exception in thread "main" org.apache.spark.SparkException: Job aborted due 
> to stage failure: Task 3 in stage 6.0 failed 4 times, most recent failure: 
> Lost task 3.3 in stage 6.0 (TID 24, ): java.io.IOException: 
> org.apache.spark.SparkException: Failed to get broadcast_6_piece0 of 
> broadcast_6
> at org.apache.spark.util.Utils$.tryOrIOException(Utils.scala:1011)
> at 
> org.apache.spark.broadcast.TorrentBroadcast.readBroadcastBlock(TorrentBroadcast.scala:164)
> at 
> org.apache.spark.broadcast.TorrentBroadcast._value$lzycompute(TorrentBroadcast.scala:64)
> at 
> org.apache.spark.broadcast.TorrentBroadcast._value(TorrentBroadcast.scala:64)
> at 
> org.apache.spark.broadcast.TorrentBroadcast.getValue(TorrentBroadcast.scala:87)
> at org.apache.spark.broadcast.Broadcast.value(Broadcast.scala:70)
> at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:58)
> at org.apache.spark.scheduler.Task.run(Task.scala:56)
> at 
> org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:196)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> Caused by: org.apache.spark.SparkException: Failed to get broadcast_6_piece0 
> of broadcast_6
> at 
> org.apache.spark.broadcast.TorrentBroadcast$$anonfun$org$apache$spark$broadcast$TorrentBroadcast$$readBlocks$1$$anonfun$2.apply(TorrentBroadcast.scala:137)
> at 
> org.apache.spark.broadcast.TorrentBroadcast$$anonfun$org$apache$spark$broadcast$TorrentBroadcast$$readBlocks$1$$anonfun$2.apply(TorrentBroadcast.scala:137)
> at scala.Option.getOrElse(Option.scala:120)
> at 
> org.apache.spark.broadcast.TorrentBroadcast$$anonfun$org$apache$spark$broadcast$TorrentBroadcast$$readBlocks$1.apply$mcVI$sp(TorrentBroadcast.scala:136)
> at 
> org.apache.spark.broadcast.TorrentBroadcast$$anonfun$org$apache$spark$broadcast$TorrentBroadcast$$readBlocks$1.apply(TorrentBroadcast.scala:119)
> at 
> org.apache.spark.broadcast.TorrentBroadcast$$anonfun$org$apache$spark$broadcast$TorrentBroadcast$$readBlocks$1.apply(TorrentBroadcast.scala:119)
> at scala.collection.immutable.List.foreach(List.scala:318)
> at 
> org.apache.spark.broadcast.TorrentBroadcast.org$apache$spark$broadcast$TorrentBroadcast$$readBlocks(TorrentBroadcast.scala:119)
> at 
> org.apache.spark.broadcast.TorrentBroadcast$$anonfun$readBroadcastBlock$1.apply(TorrentBroadcast.scala:174)
> at org.apache.spark.util.Utils$.tryOrIOException(Utils.scala:1008)
> ... 11 more
> {noformat}
> Driver stacktrace:
> {noformat}
> at 
> org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1214)
> at 
> org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1203)
> at 
> org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1202)
> at 
> scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
> at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
> at 
> 

[jira] [Updated] (SPARK-3881) This is a test JIRA

2014-10-09 Thread Spark User (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-3881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Spark User updated SPARK-3881:
--
Fix Version/s: (was: 1.2.0)
   1.1.1

 This is a test JIRA
 ---

 Key: SPARK-3881
 URL: https://issues.apache.org/jira/browse/SPARK-3881
 Project: Spark
  Issue Type: Improvement
  Components: Spark Core, SQL
Reporter: Spark User
 Fix For: 1.1.1






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Created] (SPARK-3881) This is a test JIRA

2014-10-09 Thread Spark User (JIRA)
Spark User created SPARK-3881:
-

 Summary: This is a test JIRA
 Key: SPARK-3881
 URL: https://issues.apache.org/jira/browse/SPARK-3881
 Project: Spark
  Issue Type: Improvement
  Components: Spark Core, SQL
Reporter: Spark User
 Fix For: 1.2.0






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (SPARK-3881) This is a test JIRA

2014-10-09 Thread Spark User (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-3881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Spark User updated SPARK-3881:
--
Fix Version/s: 1.3.0

 This is a test JIRA
 ---

 Key: SPARK-3881
 URL: https://issues.apache.org/jira/browse/SPARK-3881
 Project: Spark
  Issue Type: Improvement
  Components: Spark Core, SQL
Reporter: Spark User
 Fix For: 1.3.0






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (SPARK-3881) This is a test JIRA

2014-10-09 Thread Spark User (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-3881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Spark User updated SPARK-3881:
--
Fix Version/s: (was: 1.1.1)

 This is a test JIRA
 ---

 Key: SPARK-3881
 URL: https://issues.apache.org/jira/browse/SPARK-3881
 Project: Spark
  Issue Type: Improvement
  Components: Spark Core, SQL
Reporter: Spark User
 Fix For: 1.3.0






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (SPARK-3881) This is a test JIRA

2014-10-09 Thread Spark User (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-3881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Spark User updated SPARK-3881:
--
Fix Version/s: 1.3.0

 This is a test JIRA
 ---

 Key: SPARK-3881
 URL: https://issues.apache.org/jira/browse/SPARK-3881
 Project: Spark
  Issue Type: Improvement
  Components: Spark Core, SQL
Reporter: Spark User
Assignee: Spark User
 Fix For: 1.3.0






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (SPARK-3881) This is a test JIRA

2014-10-09 Thread Spark User (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-3881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Spark User updated SPARK-3881:
--
Fix Version/s: 1.2.0

 This is a test JIRA
 ---

 Key: SPARK-3881
 URL: https://issues.apache.org/jira/browse/SPARK-3881
 Project: Spark
  Issue Type: Improvement
  Components: Spark Core, SQL
Reporter: Spark User
Assignee: Spark User
 Fix For: 1.2.0, 1.3.0






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Resolved] (SPARK-3881) This is a test JIRA

2014-10-09 Thread Spark User (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-3881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Spark User resolved SPARK-3881.
---
Resolution: Invalid

 This is a test JIRA
 ---

 Key: SPARK-3881
 URL: https://issues.apache.org/jira/browse/SPARK-3881
 Project: Spark
  Issue Type: Improvement
  Components: Spark Core, SQL
Reporter: Spark User
Assignee: Spark User
 Fix For: 1.2.0, 1.3.0






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org