I'm using Spark and Graphx on IntelliJ IDEA for the first time. I'm trying to create a graph and running queries on it but I'm getting the following error:
java.lang.IllegalAccessError: tried to access class org.apache.spark.util.collection.Sorter from class org.apache.spark.graphx.impl.EdgePartitionBuilder
I'm using Spark and Graphx on IntelliJ IDEA for the first time. I'm trying to create a graph and running queries on it but I'm getting the following error:
java.lang.IllegalAccessError: tried to access class org.apache.spark.util.collection.Sorter from class org.apache.spark.graphx.impl.EdgePartitionBuilder
Here's my code:
package org.apache.spark.examples // import required spark classes
import org.apache.spark. import org.apache.spark.SparkContext. import org.apache.spark.SparkConf import org.apache.spark.graphx._ import org.apache.spark.rdd.RDD // define main method (scala entry point) object HelloWorld { def main(args: Array[String]) {
} }