Github user JoshRosen commented on the pull request:
https://github.com/apache/spark/pull/7408#issuecomment-121474819
Ah, looks like I may have to move some calls so that we don't try to
serialize the generated ordering:
```
[info] - sort followed by limit *** FAILED *** (97 milliseconds)
[info] Exception thrown while executing Spark plan to calculate expected
answer:
[info] Limit 10
[info] !Sort ['a ASC], true
[info] LocalTableScan [a#457],
[[1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12],[13],[14],[15],[16],[17],[18],[19],[20],[21],[22],[23],[24],[25],[26],[27],[28],[29],[30],[31],[32],[33],[34],[35],[36],[37],[38],[39],[40],[41],[42],[43],[44],[45],[46],[47],[48],[49],[50],[51],[52],[53],[54],[55],[56],[57],[58],[59],[60],[61],[62],[63],[64],[65],[66],[67],[68],[69],[70],[71],[72],[73],[74],[75],[76],[77],[78],[79],[80],[81],[82],[83],[84],[85],[86],[87],[88],[89],[90],[91],[92],[93],[94],[95],[96],[97],[98],[99],[100]]
[info]
[info] == Exception ==
[info] org.apache.spark.SparkException: Job aborted due to stage
failure: Task not serializable: java.io.NotSerializableException: SC
[info] - field (class "SC$SpecificOrdering", name: "this$0", type:
"class SC")
[info] - object (class "SC$SpecificOrdering",
SC$SpecificOrdering@1edd238a)
[info] - field (class
"org.apache.spark.util.CollectionsUtils$$anonfun$makeBinarySearch$8", name:
"comparator$1", type: "interface java.util.Comparator")
[info] - object (class
"org.apache.spark.util.CollectionsUtils$$anonfun$makeBinarySearch$8",
<function2>)
[info] - field (class "org.apache.spark.RangePartitioner", name:
"org$apache$spark$RangePartitioner$$binarySearch", type: "interface
scala.Function2")
[info] - custom writeObject data (class
"org.apache.spark.RangePartitioner")
[info] - object (class "org.apache.spark.RangePartitioner",
org.apache.spark.RangePartitioner@50cf16c6)
[info] - field (class "org.apache.spark.ShuffleDependency", name:
"partitioner", type: "class org.apache.spark.Partitioner")
[info] - object (class "org.apache.spark.ShuffleDependency",
org.apache.spark.ShuffleDependency@5d3944b0)
[info] - field (class "scala.Tuple2", name: "_2", type: "class
java.lang.Object")
[info] - root object (class "scala.Tuple2", (MapPartitionsRDD[424] at
apply at Transformer.scala:22,org.apache.spark.ShuffleDependency@5d3944b0))
[info] org.apache.spark.SparkException: Job aborted due to stage
failure: Task not serializable: java.io.NotSerializableException: SC
[info] - field (class "SC$SpecificOrdering", name: "this$0", type:
"class SC")
[info] - object (class "SC$SpecificOrdering",
SC$SpecificOrdering@1edd238a)
[info] - field (class
"org.apache.spark.util.CollectionsUtils$$anonfun$makeBinarySearch$8", name:
"comparator$1", type: "interface java.util.Comparator")
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]