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 A1614200D0C for ; Wed, 20 Sep 2017 10:55:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9FA681609E2; Wed, 20 Sep 2017 08:55:26 +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 B63AE1609E1 for ; Wed, 20 Sep 2017 10:55:25 +0200 (CEST) Received: (qmail 68799 invoked by uid 500); 20 Sep 2017 08:55:24 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@flink.apache.org Received: (qmail 68789 invoked by uid 99); 20 Sep 2017 08:55:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Sep 2017 08:55:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 10B631A37D8 for ; Wed, 20 Sep 2017 08:55:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.479 X-Spam-Level: X-Spam-Status: No, score=0.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=data-artisans-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Mt84j5a9sktV for ; Wed, 20 Sep 2017 08:55:20 +0000 (UTC) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id BA5975FC55 for ; Wed, 20 Sep 2017 08:55:19 +0000 (UTC) Received: by mail-wm0-f48.google.com with SMTP id 13so5129102wmq.2 for ; Wed, 20 Sep 2017 01:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=data-artisans-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:in-reply-to :references:mime-version; bh=n0ll/jwdZDXTE8RFy6JJrJzqj/63mM3xu4ngqVB9HbY=; b=QyOogpuj4c2bzUXhqN65x633gK0ZsVVqggiHMTZsZoQr5DsNoYZ5L/bB+omIO66Oj6 QnqXX1E6qh7HNHsWCotbk9RWtHu9UqHzvrRdVnFdUI8dtH6CeaDbPDUQ4xPcg/qVeEZG 5s0NWkGYTPh0iLyG4FkrM6S4iTkjzjbAQ8NdHG53LhIORSggN5KBt8sk6ZOBpswbEBxH TPlVb3Xijg6jy5Yvv2E9NRI+QG0b4FQ7k65NzcxD2OkVHZjIMk0LkwURYopFsPeGWU99 n/Tc1E7weS7l5Wfjydeue0SKyFbjf/Fy2C9Ue1BzjNKARWrXn80HvWo33BeCAtDGKQGp vsJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :in-reply-to:references:mime-version; bh=n0ll/jwdZDXTE8RFy6JJrJzqj/63mM3xu4ngqVB9HbY=; b=aVsyeps10S//G6UbwJD9bSnt+c1/Vl61uCflMajun1cXmxcsExsztuFhx8DZS1YKtf QkuN72mo5YOqdT2MjTW+ans3K+bk4BIxb/vsGLQPLqOU4tZOfkE2+fCwUpTa/+ZENmcH nDkybLoXQDa5TPntmZJeF6LPb2Ty9NiRH5M0cLus15PGP18EsscBtvqhBwecN8cjCkvK E+4EHPFbuPgMxBWMVmhycbkpxVDrXHCrZDQwVDZ+c9ILTt5vPAfzf8/S0rW10jYYW+Aw 5+WomzD233D2OPQeR4UChmV2ez8h4R+4xYNSO1P+iBYHwsJo3gf4eprofEwAPRL6lebb ljpA== X-Gm-Message-State: AHPjjUi6Qd52XfHNm7T98EneieeWtf/LaBKj1Ez0A65g/YAAMZZCN5TU onPyPvZTSQ3GIwGZZ2iPYmsJbtd5V7s= X-Google-Smtp-Source: AOwi7QCAme4gQBtyVuydXu+I5YV90sL0X79mn7wZKH1XKx+SaQg5mMxRp1UcYP5HF3qGhvUhdXAdhw== X-Received: by 10.80.182.206 with SMTP id f14mr4198116ede.110.1505897719031; Wed, 20 Sep 2017 01:55:19 -0700 (PDT) Received: from nico-work.localnet (dslb-094-222-124-158.094.222.pools.vodafone-ip.de. [94.222.124.158]) by smtp.gmail.com with ESMTPSA id c34sm709699ede.84.2017.09.20.01.55.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Sep 2017 01:55:18 -0700 (PDT) From: Nico Kruber To: user@flink.apache.org Cc: Emily McMahon , Eron Wright , Fabian Hueske , Ufuk Celebi Subject: Re: Rest API cancel-with-savepoint: 404s when passing path as target-directory Date: Wed, 20 Sep 2017 10:55:13 +0200 Message-ID: <5885536.o4ZlMTa9gL@nico-work> Organization: data Artisans In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3070125.4fsZrWJP94"; micalg="pgp-sha1"; protocol="application/pgp-signature" archived-at: Wed, 20 Sep 2017 08:55:26 -0000 --nextPart3070125.4fsZrWJP94 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi Emily, I'm not familiar with the details of the REST API either but if this is a problem with the proxy, maybe it is already interpreting the encoded URL and passes it on un-encoded - have you tried encoding the path again? That is, encoding the percent-signs: http:// {ip}:20888/proxy/application_1504649135200_0001/jobs/ 1a0fd176ec8aabb9b8464fa481f755f0/cancel-with-savepoint/target-directory/ s3%253A%252F%252F%252Fremit-flink Nico On Wednesday, 20 September 2017 00:52:05 CEST Emily McMahon wrote: > Thanks Eron & Fabian. > > The issue was hitting a yarn proxy url vs the node itself. For example this > worked > http:// > {ip}:37716/jobs/1a0fd176ec8aabb9b8464fa481f755f0/cancel-with-savepoint/targe > t-directory/s3%3A%2F%2F%2Fremit-flink > > But this did not > http:// > {ip}:20888/proxy/application_1504649135200_0001/jobs/1a0fd176ec8aabb9b8464fa > 481f755f0/cancel-with-savepoint/target-directory/s3%3A%2F%2F%2Fremit-flink > > It's a bit confusing because the cancel api works with either and the proxy > url sometimes works as this was successful http:// > {ip}:20888/proxy/application_1504649135200_0001/jobs/cca2dd609c716a7b0a19570 > 0777e5b1f/cancel-with-savepoint/target-directory/tmp/ > > Cheers, > Emily > > On Tue, Sep 19, 2017 at 2:37 PM, Eron Wright wrote: > > Good news, it can be done if you carefully encode the target directory > > with percent-encoding, as per: > > https://tools.ietf.org/html/rfc3986#section-2.1 > > > > For example, given the directory `s3:///savepoint-bucket/my-awesome-job`, > > which encodes to `s3%3A%2F%2F%2Fsavepoint-bucket%2Fmy-awesome-job`, I was > > able to submit the following URL: > > http://localhost:8081/jobs/5c360ded6e4b7d8db103e71d68b7c8 > > 3d/cancel-with-savepoint/target-directory/s3%3A%2F%2F% > > 2Fsavepoint-bucket%2Fmy-awesome-job > > > > And see the following in the log: > > 2017-09-19 14:27:45,939 INFO > > org.apache.flink.runtime.jobmanager.JobManager> > > - Trying to cancel job 5c360ded6e4b7d8db103e71d68b7c83d > > > > with savepoint to s3:///savepoint-bucket/my-awesome-job > > > > -Eron > > > > On Tue, Sep 19, 2017 at 1:54 PM, Fabian Hueske wrote: > >> Hi Emily, > >> > >> thanks for reaching out. > >> I'm not familiar with the details of the Rest API but Ufuk (in CC) might > >> be able to help you. > >> > >> Best, Fabian > >> > >> 2017-09-19 10:23 GMT+02:00 Emily McMahon : > >>> I've tried every combination I can think of to pass an s3 path as the > >>> target directory (url encode, include trailing slash, etc) > >>> > >>> I can successfully pass a local path as the target directory (ie > >>> /jobs/$jobID/cancel-with-savepoint/target-directory/tmp) so I don't > >>> think there's a problem with the jobId or rest of the url. I also > >>> verified > >>> I can create the savepoint on s3 from the command line so it's not a > >>> permission issue. > >>> > >>> Here's the same question on stack overflow > >>> >>> ully-qualified-path-to-a-savepoint-directory-using-the> (with the > >>> exception that they are getting a 502 whereas I'm getting a 404) > >>> > >>> using Flink 1.3.1 > >>> > >>> Anyone have a working example? > >>> > >>> Thanks, > >>> Emily --nextPart3070125.4fsZrWJP94 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQTIh4KsbsNd3l7wd+cg8nJL2uqeWQUCWcIs8QAKCRAg8nJL2uqe WQjpAKCA/qQCFgPWwKou09Mhhdwqpx7IYACghYvst2o+FkF9OekSs4EYwarRJ+c= =oU9v -----END PGP SIGNATURE----- --nextPart3070125.4fsZrWJP94--