Re: How to set a custom JAVA_HOME when run flink on YARN?

2016-08-29 Thread Robert Metzger
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 wrote: > It seems that this config variant only effect local cluster and stand alone > clust

Re: How to set a custom JAVA_HOME when run flink on YARN?

2016-08-25 Thread Renkai
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 Fl

Re: How to set a custom JAVA_HOME when run flink on YARN?

2016-08-25 Thread Maximilian Michels
Preferably, you set that directly in the config using env.java.home: /path/to/java/home If unset, Flink will use the $JAVA_HOME environment variable. Cheers, Max On Thu, Aug 25, 2016 at 10:39 AM, Renkai wrote: > I think I solved myself,just add -yD yarn.taskmanager.env.JAVA_HOME=xx in > the c

Re: How to set a custom JAVA_HOME when run flink on YARN?

2016-08-25 Thread Renkai
I think I solved myself,just add -yD yarn.taskmanager.env.JAVA_HOME=xx in the command line, a little hard to find the solution though. -- 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-tp867

How to set a custom JAVA_HOME when run flink on YARN?

2016-08-24 Thread Renkai
Hi,all: The YARN cluster of my company is default to use Java 7,and I want to use java 8 form my Flink application, whant can I do to achieve it? -- 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-o