java.lang.ClassCastException: java.lang.Long cannot be cast to scala.Tuple2


Solutions on the web

Solution icon of web
java.lang.Long cannot be cast to scala.Tuple2

Solution icon of web
java.lang.Long cannot be cast to scala.Tuple2

Stack trace

java.lang.ClassCastException: java.lang.Long cannot be cast to scala.Tuple2
	at org.apache.spark.graphx.impl.RoutingTableMessageSerializer$$anon$1$$anon$2.writeObject(Serializers.scala:39)
	at org.apache.spark.storage.DiskBlockObjectWriter.write(BlockObjectWriter.scala:195)
	at org.apache.spark.util.collection.ExternalSorter.spillToMergeableFile(ExternalSorter.scala:329)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.