spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiangrui Meng (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-6294) PySpark task may hang while call take() on in Java/Scala
Date Thu, 12 Mar 2015 08:37:38 GMT

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

Xiangrui Meng updated SPARK-6294:
---------------------------------
    Fix Version/s: 1.3.1
                   1.4.0

> PySpark task may hang while call take() on in Java/Scala
> --------------------------------------------------------
>
>                 Key: SPARK-6294
>                 URL: https://issues.apache.org/jira/browse/SPARK-6294
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 1.3.0, 1.2.1
>            Reporter: Davies Liu
>            Assignee: Davies Liu
>            Priority: Critical
>             Fix For: 1.4.0, 1.3.1
>
>
> {code}
> >>> rdd = sc.parallelize(range(1<<20)).map(lambda x: str(x))
> >>> rdd._jrdd.first()
> {code}
> There is the stacktrace while hanging:
> {code}
> "Executor task launch worker-5" daemon prio=10 tid=0x00007f8fd01a9800 nid=0x566 in Object.wait()
[0x00007f90481d7000]
>    java.lang.Thread.State: WAITING (on object monitor)
> 	at java.lang.Object.wait(Native Method)
> 	- waiting on <0x0000000630929340> (a org.apache.spark.api.python.PythonRDD$WriterThread)
> 	at java.lang.Thread.join(Thread.java:1281)
> 	- locked <0x0000000630929340> (a org.apache.spark.api.python.PythonRDD$WriterThread)
> 	at java.lang.Thread.join(Thread.java:1355)
> 	at org.apache.spark.api.python.PythonRDD$$anonfun$compute$1.apply(PythonRDD.scala:78)
> 	at org.apache.spark.api.python.PythonRDD$$anonfun$compute$1.apply(PythonRDD.scala:76)
> 	at org.apache.spark.TaskContextImpl$$anon$1.onTaskCompletion(TaskContextImpl.scala:49)
> 	at org.apache.spark.TaskContextImpl$$anonfun$markTaskCompleted$1.apply(TaskContextImpl.scala:68)
> 	at org.apache.spark.TaskContextImpl$$anonfun$markTaskCompleted$1.apply(TaskContextImpl.scala:66)
> 	at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
> 	at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
> 	at org.apache.spark.TaskContextImpl.markTaskCompleted(TaskContextImpl.scala:66)
> 	at org.apache.spark.scheduler.Task.run(Task.scala:58)
> 	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:745)
> {code}



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

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


Mime
View raw message