Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception ClassCastException #5

Open
jagathan opened this issue Oct 30, 2017 · 1 comment
Open

Exception ClassCastException #5

jagathan opened this issue Oct 30, 2017 · 1 comment

Comments

@jagathan
Copy link

jagathan commented Oct 30, 2017

Hi
I am trying to execute one of your test examples ( with KBetweenness.run() ) and i get this exception.

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.

During compile time i don't get any errors. I use Spark 2.2. and Scala 2.11. My maven dependencies are

<dependency>
        <groupId>dmarcous</groupId>
        <artifactId>spark-betweenness</artifactId>
        <version>1.0-s_2.10</version>
 </dependency>
<repository>
      <id>spark-repo</id>
      <name>Spark Packages Repository</name>
      <url>https://dl.bintray.com/spark-packages/maven/</url>
 </repository>

Any ideas?
Thanks in advance

@dmarcous
Copy link
Owner

dmarcous commented Nov 5, 2017

Hi, the project was built with Spark 1.4 so I guess the issue lies there.
I didn't yet get to publish a new build for Spark 2.X, but will do.

In order to verify, you can try and run the functional test here :
https://github.com/dmarcous/spark-betweenness/blob/master/src/functional-test/scala/com/centrality/kBC/LocalRunner.scala

If it throws the same error so its the version issue, if you are able to run it - lets talk further

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants