How to fix 'ClassCastException: cannot assign instance of' - Works local but not in standalone on cluster
问题 I have a Spring web application(built in maven) with which I connect to my spark cluster(4 workers and 1 master) and to my cassandra cluster(4 nodes). The application starts, the workers communicate with the master and the cassandra cluster is also running. However when I do a PCA(spark mllib) or any other calculation(clustering, pearson, spearman) through the interface of my web-app I get the following error: java.lang.ClassCastException: cannot assign instance of scala.collection.immutable