Spark-submit ClassNotFound exception

前端 未结 5 939
我寻月下人不归
我寻月下人不归 2020-12-29 06:01

I\'m having problems with a \"ClassNotFound\" Exception using this simple example:

import org.apache.spark.SparkContext
import org.apache.spark.SparkContext.         


        
5条回答
  •  盖世英雄少女心
    2020-12-29 06:11

    I also had same issue. I think --jars is not shipping the jars to executors. After I added this into SparkConf, it works fine.

     val conf = new SparkConf().setMaster("...").setJars(Seq("/a/b/x.jar", "/c/d/y.jar"))
    

    This web page for trouble shooting is useful too.

提交回复
热议问题