Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B28B9200C09 for ; Wed, 25 Jan 2017 20:35:52 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B12CB160B4E; Wed, 25 Jan 2017 19:35:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D7138160B3D for ; Wed, 25 Jan 2017 20:35:51 +0100 (CET) Received: (qmail 47335 invoked by uid 500); 25 Jan 2017 19:35:45 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 47325 invoked by uid 99); 25 Jan 2017 19:35:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2017 19:35:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7248AC0B7C for ; Wed, 25 Jan 2017 19:35:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.679 X-Spam-Level: * X-Spam-Status: No, score=1.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ZM2ZJIeOnK-S for ; Wed, 25 Jan 2017 19:35:43 +0000 (UTC) Received: from mail-qt0-f176.google.com (mail-qt0-f176.google.com [209.85.216.176]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id AD4415F2F1 for ; Wed, 25 Jan 2017 19:35:42 +0000 (UTC) Received: by mail-qt0-f176.google.com with SMTP id l7so34895347qtd.1 for ; Wed, 25 Jan 2017 11:35:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Pejltg8ogE9FbOONQ6TMjVY34vzIIrF+S5v33j6H6kU=; b=BI+AdGA2Lomi0LWXlwme0Z7mQrNRJ70G9sAR7OHdytqStUrcoVixZh09/lfqMVRtT8 mZ2UV9Srp8xDAsIXJiIL9TT1U++2MVgA29SX4blf65PKpJR33G7WXwJETtJoJLJCBSxp I29FNv3ZyRN6vAdDqEZOanwtBulWhQ/IlmqqZYWf0l3WnVZjtwd17378LBs9cfIwszqK qF2nh7JT4kQrb2vK4iSigUeR5/ZVPC7mU/oXMXAcHb/ddGhF9J9yDxo9GBfNzhxv923G CMXkRkQXq1dsr+rQ8XbdcyuYScZFPjk6/cLCzW2+Qrso6tgcuqRbtO92DFjVn+T4nf8u LZBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Pejltg8ogE9FbOONQ6TMjVY34vzIIrF+S5v33j6H6kU=; b=G366w6N+bWvGCOnmxO63qfqCsPZ22I3FfyKoa4T8tY+lHnqfXRILDMP79o1kTue75p AtiivNXX4GOZpH9lMODYBP59s54B3r/pDDfendVp5lah1+mWnAIFokaS3ceXL3wRl+JK uQ0g35RkaeOh0BFsZVI3iPajJFelMwqVVgDBYw5j7WKbcPk9wy3OJnDGdIvFx7EFb7QY u5h2vieJI8P2xiQb64MdczQewzBB9oXRMGu7jiw2ArAc+h2fLUboOJJsoGm75PP5kZS6 jobcYYliQ7ju2iubDmiWHcngV4LXP+L5jXBmags1RZcCrstRE2JD4VJTAv1CYYyhGDeR W+gQ== X-Gm-Message-State: AIkVDXJ2hbwArmXAZvEuZje4oUIIkga31zWk2Y4Kn2fTQ5scjIEraqGQ9lo4+m+YYTKJYpzPUQYpNWwx+jsLeQ== X-Received: by 10.55.162.147 with SMTP id l141mr15851690qke.272.1485372941736; Wed, 25 Jan 2017 11:35:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.135.214 with HTTP; Wed, 25 Jan 2017 11:35:41 -0800 (PST) In-Reply-To: References: From: Cliff Resnick Date: Wed, 25 Jan 2017 14:35:41 -0500 Message-ID: Subject: Re: REST api: how to upload jar? To: user@flink.apache.org Content-Type: multipart/alternative; boundary=001a114d8f6e8d21850546f05627 archived-at: Wed, 25 Jan 2017 19:35:52 -0000 --001a114d8f6e8d21850546f05627 Content-Type: text/plain; charset=UTF-8 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 open a jira for fixing the documentation? > > - Sachin > > > On Jan 25, 2017 06:55, "Cliff Resnick" wrote: > >> The 1.2 release documentation (https://ci.apache.org/project >> s/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 mean that upload is only supported via the web frontend? I >> did notice that if I manually upload a jar to the configured upload dir an >> prepend its name with a uuid it does get recognized and I can POST a job >> start, but this is messy and I'd rather use the api if supported. >> >> -Cliff >> > --001a114d8f6e8d21850546f05627 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Tue, Jan 24, 2017 at 11:30 PM, Sachin Goel <sachingoel0101@gma= il.com> wrote:
Hey Cliff=C2=A0
You can upload a jar file using= http post with the file data sent under a form field 'jarfile'.=C2= =A0

Can you also please = open a jira for fixing the documentation?=C2=A0

- Sa= chin

On Jan 25, 2017 06:55, "Cliff Resnick"= ; <cresny@gmail.co= m> wrote:
The 1.2 release documentation (https://ci.apache.org/projects/flink/flink-docs-release-1.= 2/monitoring/rest_api.html) =C2=A0states "It is possible to u= pload, run, and list Flink programs via the REST APIs and web frontend"= ;. However there is no documentation about uploading a jar via REST api. Do= es this mean that upload is only supported via the web frontend?=C2=A0 I di= d notice that if I manually upload a jar to the configured upload dir an pr= epend its name with a uuid it does get recognized and I can POST a job star= t, but this is messy and I'd rather use the api if supported.

<= /div>
-Cliff

--001a114d8f6e8d21850546f05627--