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 8E5EA200C10 for ; Fri, 3 Feb 2017 14:15:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8CE7F160B55; Fri, 3 Feb 2017 13:15:14 +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 AE756160B48 for ; Fri, 3 Feb 2017 14:15:13 +0100 (CET) Received: (qmail 3870 invoked by uid 500); 3 Feb 2017 13:15:12 -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 3847 invoked by uid 99); 3 Feb 2017 13:15:08 -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; Fri, 03 Feb 2017 13:15:08 +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 E14F91A0202 for ; Fri, 3 Feb 2017 13:15:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, KAM_ASCII_DIVIDERS=0.8, 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=signavio-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id JeW28zjXTg9Z for ; Fri, 3 Feb 2017 13:15:05 +0000 (UTC) Received: from mail-yw0-f170.google.com (mail-yw0-f170.google.com [209.85.161.170]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 924115F30D for ; Fri, 3 Feb 2017 13:15:05 +0000 (UTC) Received: by mail-yw0-f170.google.com with SMTP id l19so10851654ywc.2 for ; Fri, 03 Feb 2017 05:15:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=signavio-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=lJnU+7rNRE4k4xDDnNynrC9Qsz1we88RQi7ZmQbIrx0=; b=1/xd5QboAeGdKFw3xuHXuXhUSvKwiOd7iwd6aEMlVeoTYNgkmQ+yHjePa+GFvIgz0D YIKpQUWkM5B9X/sDBPMsECQuujljxT0SC5CIgiE25MBO01ZLVEoRKy1+v2AO6SmljRnt JQus6vbCnYnTFoNpWcILk/K2fZzt2WwKO1qlD8Bl4aQtF/gbaGzvuWJnVQdSTefqWSKq T0SUd+DDyhiqJRbTMhLnVDoIWettuhvY4YZvazJdtempZ2uWveH2u9rfTENgyFcEuD8f PoDHlKrCzlYi2WGvBI8nJZ6scnomBOAmwPaNKvYwf94gaB5rJaI5sQ1HSvzU2Abe4l7z Lj7Q== 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:content-transfer-encoding; bh=lJnU+7rNRE4k4xDDnNynrC9Qsz1we88RQi7ZmQbIrx0=; b=HTPl42l9/I5xSNmhULGZ8K42LT8QPBvJXGsVsL71LC+KQUP72ETAFl7mrIEgWNAe2i yyejYMa1T+ofDGLcenlpaYR5Rb1W14L3MzyW5pi3lmig5QUmKRLMtd7pgnTkF4bnM8oU GCR7xiYJ1U0abTQ8lm94lw/CPp7VLNOXxsCOYYfB0wK9iL1oLAhSJUV7OovUDWYyVsVY qjRKWKjpmZRhB4K6zLQgM/0XV9IeT98v9rpfe5P2we2PckPH2ESoNf150wAqRryw+vvd 15bWRJciOwLegkbNZODhc/9DZdQRj/91tkRk6PgHEY1eV/i6JmY3el6/2+qSpSgHtdfx xhNg== X-Gm-Message-State: AIkVDXLhOLfKZaWDo16At2vnolyqBW+NmDPtv/8juyRDLs7I4IlD19K9tOtqCKfYHtyDDHsmWOkfM29q0jHsG/v9 X-Received: by 10.129.51.134 with SMTP id z128mr9297342ywz.352.1486127704820; Fri, 03 Feb 2017 05:15:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.53.194 with HTTP; Fri, 3 Feb 2017 05:15:04 -0800 (PST) In-Reply-To: References: From: Kathleen Sharp Date: Fri, 3 Feb 2017 14:15:04 +0100 Message-ID: Subject: Re: Restoring from an external checkpoint / savepoint with a local stream environment To: user@flink.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable archived-at: Fri, 03 Feb 2017 13:15:14 -0000 Thanks a lot for the detailed answer. From reading the code i suspected something would be possible, but this would have taken me a while to figure out. On Fri, Feb 3, 2017 at 2:08 PM, Ufuk Celebi wrote: > Hey Kathleen, > > this is not supported "natively" in the APIs but the following is > possible to work around it: > > int jobManagerPort =3D 6123; > int numTaskSlots =3D 8; > String savepointPath =3D "/Users/uce/Desktop/savepoint-xAsd"; > > Configuration config =3D new Configuration(); > config.setInteger(ConfigConstants.JOB_MANAGER_IPC_PORT_KEY, jobManagerPor= t); > config.setInteger(ConfigConstants.TASK_MANAGER_NUM_TASK_SLOTS, numTaskSlo= ts); > > LocalFlinkMiniCluster cluster =3D new LocalFlinkMiniCluster(config, false= ); > cluster.start(true); > > // The "remote environment" submits to the local cluster > StreamExecutionEnvironment env =3D > StreamExecutionEnvironment.createRemoteEnvironment("localhost", > jobManagerPort); > > // Create your program as usual > // ... > > // Instead of env.execute do the following: > > JobGraph jobGraph =3D env.getStreamGraph().getJobGraph(); > jobGraph.setSavepointRestoreSettings(SavepointRestoreSettings.forPath(sav= epointPath)); > > boolean printUpdates =3D true; > cluster.submitJobAndWait(jobGraph, printUpdates); > > ---- > > We could think about exposing the SavepointSettings to the > StreamGraph. Then you don't need all the boilerplate for this. > > > On Fri, Feb 3, 2017 at 12:20 PM, Kathleen Sharp > wrote: >> Hi, >> >> is it possible to restore from an external checkpoint / savepoint >> while using a local stream environment? >> >> I ask because I want to play around with some concepts from within my >> IDE, without building a jar and deploying my job. >> >> Thanks, >> Kat >> >> -- >> _______________________________________________________ >> >> Besuchen Sie uns / Meet us: >> OPEX-Woche DACH: January 17-19, Wiesbaden, Germany >> OPEX Week World Summit: January 23-27, Orlando, USA >> CIO EDGE Experience: Febuary 22-23, Melbourne, Australia >> Business Transformation and Operational Excellence World Summit: March >> 21-24, Orlando, USA >> >> Folgen Sie uns / Follow us: >> Twitter | Facebook | LinkedIn | Xing | Youtube >> ________________________________________________________ >> >> >> HRB 121584 B Amtsgericht Charlottenburg, Ust-ID: DE265675123 >> Gesch=C3=A4ftsf=C3=BChrer: Dr. Gero Decker, Guido Sachs --=20 _______________________________________________________ Besuchen Sie uns / Meet us: OPEX-Woche DACH: January 17-19, Wiesbaden, Germany OPEX Week World Summit: January 23-27, Orlando, USA CIO EDGE Experience: Febuary 22-23, Melbourne, Australia Business Transformation and Operational Excellence World Summit: March 21-24, Orlando, USA Folgen Sie uns / Follow us: Twitter | Facebook | LinkedIn | Xing | Youtube ________________________________________________________ HRB 121584 B Amtsgericht Charlottenburg, Ust-ID: DE265675123 Gesch=C3=A4ftsf=C3=BChrer: Dr. Gero Decker, Guido Sachs