提交 97ca03a0 编写于 作者: H hamstah 提交者: Stephan Ewen

[FLINK-5646] [docs] Document JAR upload with the REST API

This closes #3722
上级 0391e414
......@@ -660,6 +660,19 @@ The `savepointPath` points to the external path of the savepoint, which can be u
It is possible to upload, run, and list Flink programs via the REST APIs and web frontend.
#### Upload a new JAR file
Send a `POST` request to `/jars/upload` with your jar file sent as multi-part data under the `jarfile` file.
Also make sure that the multi-part data includes the `Content-Type` of the file itself, some http libraries do not add the header by default.
The multi-part payload should start like
```
------BoundaryXXXX
Content-Disposition: form-data; name="jarfile"; filename="YourFileName.jar"
Content-Type: application/x-java-archive
```
#### 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`).
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册