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 02825200C15 for ; Wed, 25 Jan 2017 05:30:51 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0120D160B4B; Wed, 25 Jan 2017 04:30:51 +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 4847A160B3E for ; Wed, 25 Jan 2017 05:30:50 +0100 (CET) Received: (qmail 58393 invoked by uid 500); 25 Jan 2017 04:30:49 -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 58382 invoked by uid 99); 25 Jan 2017 04:30:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2017 04:30:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 97A11C0DE2 for ; Wed, 25 Jan 2017 04:30:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.629 X-Spam-Level: ** X-Spam-Status: No, score=2.629 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, 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: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 1AZmbJ1bXFzV for ; Wed, 25 Jan 2017 04:30:47 +0000 (UTC) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 918F45F3BF for ; Wed, 25 Jan 2017 04:30:47 +0000 (UTC) Received: by mail-qk0-f181.google.com with SMTP id 11so63789837qkl.3 for ; Tue, 24 Jan 2017 20:30:47 -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=gocfa4E8HcYElEmFuAlatwdc3F2cYjh3Pl59CepzBGs=; b=trBCLnSu0gTiIWumUGLgetEQeMy3RAYiSquelQssoTgiRDqo4bE+4AFk0PEecVWLvm 5YF3ZUKczvztgZkleIZAeqf/6z8Fwi+2bRzrPX1693wvadRnYI3U9leqCC34Iie4cMnd CfiY0JaHKhcqnS2LWP4ty9SgDqH0hV5yxKKXI3ZSvseIEwAYk8o3KYeOKJXGvkKt6fXD vPc1jVr1lOC/z/LGKOXHE6Eq5iAj2mOFpyDXzUU9zcLStMFtJa5Dueix6gE7+FCuypRV 3LcPuShG8zJtzoatpb24/tin1gKcFK9qtwchXIQjNFAuxYbcv847dfUroNJBNljCoPrJ JxMQ== 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=gocfa4E8HcYElEmFuAlatwdc3F2cYjh3Pl59CepzBGs=; b=SZJuUtM3PcQpnd2rIP4WJ3nwfUC3TcXfccV+eNd7P/pXg/Doa8DsSYRcxJZZUg19PB 9w8ZA8QGmmszW53F+AxsB3qMhyZyJtjheGqyNocuBpvwB42HzhJpaVlD/nXxh4gBMGg0 aelQ15GBxzrNC/QfCQkLl4M5VDJEcFVeNiI6H26SVsFaBuhCcaomCzijlZwHXiEHB16u qjPUdG1priC3dI9FY5wvLP2UtX64pk5Ok4t9O7lpNBf/d0DZ1tBV5E5z15Fuq+Wpmay1 6041RkQG2WNLiV3TeGnKG3nWJURktO/VvtYgxvSOIevYpADqklAdmBzMe2Wr1SFJoWXO kYpA== X-Gm-Message-State: AIkVDXLWPdOiWjKz6Xy5HX9Rb9EMG3KTTvcm1e1uZr+p5jVeBIXiYWm/Vlsd6qrvjKR5coMEol5Wyp/2UuP0PQ== X-Received: by 10.55.135.1 with SMTP id j1mr33955937qkd.107.1485318645800; Tue, 24 Jan 2017 20:30:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.55.56.199 with HTTP; Tue, 24 Jan 2017 20:30:45 -0800 (PST) Received: by 10.55.56.199 with HTTP; Tue, 24 Jan 2017 20:30:45 -0800 (PST) In-Reply-To: References: From: Sachin Goel Date: Wed, 25 Jan 2017 13:30:45 +0900 Message-ID: Subject: Re: REST api: how to upload jar? To: user@flink.apache.org Content-Type: multipart/alternative; boundary=94eb2c073c1042ea250546e3b2a1 archived-at: Wed, 25 Jan 2017 04:30:51 -0000 --94eb2c073c1042ea250546e3b2a1 Content-Type: text/plain; charset=UTF-8 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 > --94eb2c073c1042ea250546e3b2a1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hey Cliff=C2=A0
You can upload a ja= r file using http post with the file data sent under a form field 'jarf= ile'.=C2=A0

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

- Sachin


On Jan 25, 2017 06:55, "Cliff R= esnick" <cres= ny@gmail.com> wrote:
The 1.2 release documentation (https://ci.apache.org/projects/flink/flink-docs-r= elease-1.2/monitoring/rest_api.html) =C2=A0states "It is poss= ible to upload, run, and list Flink programs via the REST APIs and web fron= tend". However there is no documentation about uploading a jar via RES= T api. Does this mean that upload is only supported via the web frontend?= =C2=A0 I did notice that if I manually upload a jar to the configured uploa= d 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
--94eb2c073c1042ea250546e3b2a1--