spark build path is cross-compiled with an incompatible version of Scala (2.10.0)

前端 未结 4 1956
渐次进展
渐次进展 2020-12-29 08:57

When i try to execute sparksql code in scala IDE im getting below error,Could anyone help me to sort out this please?

spark build path is cross-compiled wit         


        
4条回答
  •  隐瞒了意图╮
    2020-12-29 09:36

    "-Xsource:2.11 -Ymacro-expand:none" solved my problem , just updated in right click project -> properties -> Scala Compiler , Additional Command Line Parameter , to fix this "build path is cross-compiled with an incompatible version of Scala (2.11.0). In case this report is mistaken, this check can be disabled in the compiler preference page."

提交回复
热议问题