As the documentation states this is an effectively internal REST call
used by the CLI.
To submit jobs via REST I would suggest to check out the jar submission
routine.
https://ci.apache.org/projects/flink/flink-docs-master/monitoring/rest_api.html#jars-upload
https://ci.apache.org/projects/flink/flink-docs-master/monitoring/rest_api.html#jars-jarid-run
On 19.10.2018 08:43, wangziyu wrote:
Hi,
I am learning Monitorong restful api [1]. I want to know how to use the
"/jobs"/Post. The request body need to enter some parameters.Like
"jobGraphFileName" ,"jobArtifactFileNames","jobJarFileNames".The three
parameters how to get them?
[1]:"https://ci.apache.org/projects/flink/flink-docs-release-1.6/monitoring/rest_api.html"
You can search "Submits a job. This call is primarily intended to be used by
the Flink client. This call expects amultipart/form-data request that
consists of file uploads for the serialized JobGraph, jars anddistributed
cache artifacts and an attribute named "request"for the JSON payload." to
know which api.
Thanks !
--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/