(run-main-0) java.lang.NoSuchMethodError

前端 未结 9 1523
孤城傲影
孤城傲影 2020-12-15 05:11

I got a problem when I used sbt to run a spark job, I have finish compile, but when I run the command run, I got the problem below

 [er         


        
9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-15 05:53

    It is probably caused by using incompatible versions of Scala. When I downgraded from Scala 2.11 to 2.10, I forgot to modify one package version (so one package used 2.11, the rest 2.10), resulting in having the same error.

    Note: I only had this problem when using IntelliJ.

提交回复
热议问题