How to spark-submit with main class in jar?

前端 未结 4 1983
慢半拍i
慢半拍i 2021-02-10 15:02

There are a ton of questions about ClassNotFoundException but I haven\'t seen any (yet) that fit this specific case. I am attempting to run the following command:

4条回答
  •  花落未央
    2021-02-10 15:28

    Try to add maven-shade plugin and build > run.

    Here is the reference, it may help you.

    Getting java.lang.ClassNotFoundException while running Spark Application

提交回复
热议问题