Github user zentol commented on a diff in the pull request:
https://github.com/apache/flink/pull/2714#discussion_r85729577
--- Diff: docs/monitoring/rest_api.md ---
@@ -652,3 +657,32 @@ The `savepointPath` points to the external path of the
savepoint, which can be u
"cause": "<error message>"
}
~~~
+
+### Submitting Programs
+
+It is possible to upload, run, and list Flink programs via the REST APIs
and web frontend.
+
+#### Run a Program (POST)
+
+Send a `POST` request to `/jars/:jarid/run`. The `jarid` parameter is the
file name of the program JAR in the configured web frontend upload directory
(configuration key `jobmanager.web.upload.dir`).
+
+You can specify the following query parameters (all optional):
+
+- **Program arguments**: `program-args=arg1 arg2 arg3`
+- **Main class to execute**: `entry-class=EntryClassName.class`
+- **Default parallelism**: `parallelism=4`
+- **Savepoint path to restore from**:
`savepointPath=hdfs://path/to/savepoint`
+- **Ignore unmapped savepoint state**: `ignoreUnmappedState=true`
+
+If the call succeeds, you will get a response with the ID of the submitted
job.
+
+**Example:** Run program with a savepoint
+
+~~~
+POST:
/jars/MyProgram.jar/run?savepointPath=/my-savepoints/savepoint-1bae02a80464&ignoreUnmappedState=true
+~~~
+
+~~~
+{"jobid": "869a9868d49c679e7355700e0857af85"}
--- End diff --
what is this line for?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---