How to specify which java version to use in spark-submit command?

后端 未结 5 1586
走了就别回头了
走了就别回头了 2021-02-13 11:27

I want to run a spark streaming application on a yarn cluster on a remote server. The default java version is 1.7 but i want to use 1.8 for my application which is also there in

5条回答
  •  难免孤独
    2021-02-13 12:03

    If you want to set java environment for spark on yarn, you can set it before spark-submit

    --conf spark.yarn.appMasterEnv.JAVA_HOME=/usr/java/jdk1.8.0_121 \
    

提交回复
热议问题