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

后端 未结 5 1591
走了就别回头了
走了就别回头了 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 11:56

    Add JAVA_HOME that you want in spark-env.sh (sudo find -name spark-env.sh ...ej. : /etc/spark2/conf.cloudera.spark2_on_yarn/spark-env.sh)

提交回复
热议问题