You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Shubham Chaurasia <sh...@gmail.com> on 2018/10/08 05:45:35 UTC
Target java version not set when building spark with tags/v2.4.0-rc2
Hi All,
I built spark with *tags/v2.4.0-rc2* using
./build/mvn -DskipTests -Phadoop-2.7 -Dhadoop.version=3.1.0 clean install
Now from spark-shell when ever I call any static method residing in an
interface, it shows me error like :
<console>:28: error: Static methods in interface require -target:jvm-1.8
However spark shell is getting correct java version, I verified like:
scala> java.lang.System.getProperty("java.version")
res1: String = 1.8.0_181
This was not the case when I was building with tags/v2.3.2
Have I missed something?
Thanks,
Shubham