beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ethanhunt999 (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-3394) Trying to run Apache Beam 2.3.0-SNAPSHOT pipeline on Spark 2.2.1 standalone cluster and I am facing some ClassCastException.
Date Tue, 02 Jan 2018 08:12:00 GMT

    [ https://issues.apache.org/jira/browse/BEAM-3394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16307756#comment-16307756
] 

ethanhunt999 commented on BEAM-3394:
------------------------------------

For spark cluster, We are using Spark version 2.2.1 and Scala version 2.11.8.
Sorry for source code, We can not share you source code because its a lot dependency and its
very difficult to create small snippet of code and post over here.

> Trying to run Apache Beam 2.3.0-SNAPSHOT pipeline on Spark 2.2.1 standalone cluster and
I am facing some ClassCastException.
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-3394
>                 URL: https://issues.apache.org/jira/browse/BEAM-3394
>             Project: Beam
>          Issue Type: Bug
>          Components: beam-model, runner-spark
>    Affects Versions: 2.3.0
>            Reporter: ethanhunt999
>            Assignee: Jean-Baptiste Onofré
>
> As Jira Issue for [Spark 2.x support in Spark runner](https://issues.apache.org/jira/browse/BEAM-1920)
is resolved, Now I am able to execute pipeline in Local mode successfully. But if am trying
to run on Spark standalone cluster its showing some _ClassCastException_
> Here is some tech versioning details which am currently using may be will helpful to
you:
>  -Scala 2.11.8
>  -Spark 2.2.1
>  -Apache Beam 2.3.0-SNAPSHOT
> Here is the full trace for error
> {noformat}
>     java.lang.ClassCastException: cannot assign instance of scala.collection.immutable.List$SerializationProxy
to field org.apache.spark.rdd.RDD.org$apache$spark$rdd$RDD$$dependencies_ of type scala.collection.Seq
in instance of org.apache.spark.rdd.MapPartitionsRDD
>     	at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2233)
>     	at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1405)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2288)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
>     	at scala.collection.immutable.List$SerializationProxy.readObject(List.scala:479)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     	at java.lang.reflect.Method.invoke(Method.java:498)
>     	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2173)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
>     	at scala.collection.immutable.List$SerializationProxy.readObject(List.scala:479)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     	at java.lang.reflect.Method.invoke(Method.java:498)
>     	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2173)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
>     	at scala.collection.immutable.List$SerializationProxy.readObject(List.scala:479)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     	at java.lang.reflect.Method.invoke(Method.java:498)
>     	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2173)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
>     	at scala.collection.immutable.List$SerializationProxy.readObject(List.scala:479)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     	at java.lang.reflect.Method.invoke(Method.java:498)
>     	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2173)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
>     	at scala.collection.immutable.List$SerializationProxy.readObject(List.scala:479)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     	at java.lang.reflect.Method.invoke(Method.java:498)
>     	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2173)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
>     	at scala.collection.immutable.List$SerializationProxy.readObject(List.scala:479)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     	at java.lang.reflect.Method.invoke(Method.java:498)
>     	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2173)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
>     	at scala.collection.immutable.List$SerializationProxy.readObject(List.scala:479)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     	at java.lang.reflect.Method.invoke(Method.java:498)
>     	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2173)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
>     	at scala.collection.immutable.List$SerializationProxy.readObject(List.scala:479)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     	at java.lang.reflect.Method.invoke(Method.java:498)
>     	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2173)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
>     	at scala.collection.immutable.List$SerializationProxy.readObject(List.scala:479)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     	at java.lang.reflect.Method.invoke(Method.java:498)
>     	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2173)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
>     	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
>     	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
>     	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
>     	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
>     	at org.apache.spark.serializer.JavaDeserializationStream.readObject(JavaSerializer.scala:75)
>     	at org.apache.spark.serializer.JavaSerializerInstance.deserialize(JavaSerializer.scala:114)
>     	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:85)
>     	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
>     	at org.apache.spark.scheduler.Task.run(Task.scala:108)
>     	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:338)
>     	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>     	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>     	at java.lang.Thread.run(Thread.java:748)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message