The "env.java.home" variable is only evaluated by the start scripts, not the YARN code.
The solution you've mentioned earlier is a good work around in my opinion. On Fri, Aug 26, 2016 at 3:48 AM, Renkai <gaelook...@gmail.com> wrote: > It seems that this config variant only effect local cluster and stand alone > cluster,not effect yarn. > > > > -- > View this message in context: http://apache-flink-user- > mailing-list-archive.2336050.n4.nabble.com/How-to-set-a- > custom-JAVA-HOME-when-run-flink-on-YARN-tp8676p8709.html > Sent from the Apache Flink User Mailing List archive. mailing list archive > at Nabble.com. >