Spark-submit ClassNotFound exception

前端 未结 5 942
我寻月下人不归
我寻月下人不归 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:19

    What I figured out was if you have build your project without any warnings then you don't have to write extra code for master and other things. Although it is a good practice but you can just avoid it. Like here in my case there was no warnings in the project so I was able to run it without any extra code. Project Structure Link

    In the case where I have some build related warnings there I have to take care of JAR paths, my URL and the master in code as well as while executing it.

    I hope it may help someone. Cheers !

提交回复
热议问题