You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by 程骥 <ji...@qq.com> on 2017/07/28 09:57:48 UTC

回复: How can I submit a flink job to YARN/Cluster from java code?

Hi,Till
Actually,to submit a flink job to flink clusetr with ExecutionEnvironment.createRemoteEnvironment,I have implemented.


but how to submit flink job to flink on yarn,I have no idea.


I think this API not supported.


Thanks for your help.
:)


------------------ 原始邮件 ------------------
发件人: "Till Rohrmann";<tr...@apache.org>;
发送时间: 2017年7月28日(星期五) 下午5:13
收件人: "程骥"<ji...@qq.com>; 
抄送: "user"<us...@flink.apache.org>; 
主题: Re: How can I submit a flink job to YARN/Cluster from java code?




Hi,
 
it is possible to submit a job to a running cluster (Standalone/Mesos/Yarn) by using the RemoteEnvironment which you can create via ExecutionEnvironment.createRemoteEnvironment and then executing your program (e.g. running it in the IDE). This assumes that the remote cluster is already running.
 
The RemoteEnvironment requires that you give it the hostname and port of the running cluster or, if using a HA cluster, a properly configured configuration from which the client can retrieve the HA settings.
 
Cheers,
Till
 ​



On Fri, Jul 28, 2017 at 9:50 AM, 程骥 <ji...@qq.com> wrote:
Hello,
I want to submit a flink job to YARN/Cluster from java code.If this is feasible? 
Is there anyone tried to do it before ? 




Thanks