简体   繁体   中英

Does Flink provide Java API to submit jobs to JobManager?

I know Jobs can be submit to JobManager by flink or flink.bat. I wanna know whether Flink provides Java API to submit jobs to JobManager?

Yes. Depending on the type of cluster you want to connect, there are several implementations of the ClusterClient ( https://ci.apache.org/projects/flink/flink-docs-release-1.3/api/java/org/apache/flink/client/program/ClusterClient.html ).

It can run jobs either in a blocking (synchronous) or detached (asynchronous) fashion. One way of deploying a job is to provide a PackagedProgram, which consists of a JAR file with a Main Class and several supporting JAR files (additional libraries required specifically for the job).

你可以看看这个测试类ClientTest.java ,也许能帮到你,更多的配置参数看配置

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM