[
https://issues.apache.org/jira/browse/FLINK-5598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15894688#comment-15894688
]
ASF GitHub Bot commented on FLINK-5598:
---------------------------------------
GitHub user drummerwolli opened a pull request:
https://github.com/apache/flink/pull/3469
[FLINK-5598] return filename after jar upload
We use the Flink Web Backend to control Flink Jobs running in our Cluster.
We would like to have more control in the API. This is the first change I
propose, changing the output of the upload JAR Endpoint to something
meaningful. To start a Flink Job you need to have the Jar Name, which gets
created randomly during upload. The API now returns this.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/drummerwolli/flink FLINK-5598_return_file_name
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/3469.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3469
----
commit c3cea2ab335cd6c884bec66c68f202751219b1c3
Author: Fabian Wollert <[email protected]>
Date: 2017-03-03T16:40:02Z
[FLINK-5598] return filename after jar upload
----
> Return jar name when jar is uploaded
> ------------------------------------
>
> Key: FLINK-5598
> URL: https://issues.apache.org/jira/browse/FLINK-5598
> Project: Flink
> Issue Type: Improvement
> Components: Web Client
> Reporter: Sendoh
>
> As as a Jenkins user who wants to uplaod jar through http call, I want jar
> file name is returned after jar is uploaded.
> Currently it returns nothing, as the code shown:
> File newFile = new File(jarDir, UUID.randomUUID() + "_" + filename);
> if (tempFile.renameTo(newFile)) {
> // all went well
> return "{}";
> }
> Ref:
> https://github.com/apache/flink/blob/master/flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/handlers/JarUploadHandler.java#L58
> My proposal will be
> reuturn {"fileName": newFile.getName()}
> Any suggestion is welcome.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)