Re: REST api: how to upload jar?

2017-12-11 Thread Piotr Nowojski
Hi, Have you tried this https://stackoverflow.com/questions/41724269/apache-flink-rest-client-jar-upload-not-working ? Piotrek > On 11 Dec 2017, at 14:22, Edward wrote: > >

Re: REST api: how to upload jar?

2017-12-11 Thread Edward
Let me try that again -- it didn't seem to render my commands correctly: Thanks for the response, Shailesh. However, when I try with python, I get the same error as when I attempted this with cURL: $ python uploadJar.py java.io.FileNotFoundException:

Re: REST api: how to upload jar?

2017-12-11 Thread Edward
Thanks for the response, Shailesh. However, when I try with python, I get the same error as when I attempted this with cURL: That is, if I tell python (or cURL) that my jar file is at /path/to/jar/file.jar, the file path it uses on the server side includes that entire path. And if I try the

Re: REST api: how to upload jar?

2017-12-10 Thread Shailesh Jain
If you have python available, a simple script can help you there. uploadJar.py: > import requests # you might need to 'pip install requests' from command > line > > uploadUrl = 'http://localhost:8081/jars/upload' # Replace localhost with > your JobManager url > jarName = '/path/to/jar/file.jar'

Re: REST api: how to upload jar?

2017-12-08 Thread Edward
Has anyone successfully uploaded to the REST API using command line tools (i.e. curl)? If so, please post an example. -- Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/

Re: REST api: how to upload jar?

2017-01-25 Thread Cliff Resnick
Thanks for that, issue here https://issues.apache.org/jira/browse/FLINK-5646 On Tue, Jan 24, 2017 at 11:30 PM, Sachin Goel wrote: > Hey Cliff > You can upload a jar file using http post with the file data sent under a > form field 'jarfile'. > > Can you also please

Re: REST api: how to upload jar?

2017-01-24 Thread Sachin Goel
Hey Cliff You can upload a jar file using http post with the file data sent under a form field 'jarfile'. Can you also please open a jira for fixing the documentation? - Sachin On Jan 25, 2017 06:55, "Cliff Resnick" wrote: > The 1.2 release documentation

REST api: how to upload jar?

2017-01-24 Thread Cliff Resnick
The 1.2 release documentation (https://ci.apache.org/ projects/flink/flink-docs-release-1.2/monitoring/rest_api.html) states "It is possible to upload, run, and list Flink programs via the REST APIs and web frontend". However there is no documentation about uploading a jar via REST api. Does this