SparkSession中出现Exception in thread "main" java.lang.AbstractMethodError

1.使用SparkSession时,出现异常:Exception in thread "main" java.lang.AbstractMethodError
2.查看pom.xml文件,是否是因为spark-core和spark-sql的版本不匹配导致?

<dependency>
        <groupId>org.apache.sparkgroupId>
        <artifactId>spark-core_2.11artifactId>
        <version>2.3.0version>
    dependency>
    
    <dependency>
        <groupId>org.apache.sparkgroupId>
        <artifactId>spark-sql_2.11artifactId>
        <version>2.3.0version>
    dependency>

你可能感兴趣的:(Spark)