Flink Uploaded JAR Filename

Posted by Pavel Ciorba on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Flink-Uploaded-JAR-Filename-tp19424.html

Hi everyone

I make 2 cURL POST requests to upload and run a Flink job.
The issue is that I do it manually:
First I do the upload,
then using the returned name of the jar, I make a follow up run request. 

$ curl -X POST upload jar ...
{status:success, filename: 12jhgjasd123asd12-ACTUALNAME.jar}
$ curl -x POST run 12jhgjasd123asd12-ACTUALNAME.jar ...

Can I configure so that Flink doesn't add the prefix to the uploaded jars example:12jhgjasd123asd12 ?

Or if that is not possible, 
Has anyone automated the process? i.e. made a bash script that uploads the jar, gets the returned name and then makes a run request with the name?

Thanks