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 0836420049B for ; Mon, 14 Aug 2017 14:48:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 06B7716525A; Mon, 14 Aug 2017 12:48:04 +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 EA0ED165259 for ; Mon, 14 Aug 2017 14:48:02 +0200 (CEST) Received: (qmail 55566 invoked by uid 500); 14 Aug 2017 12:48:01 -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 55556 invoked by uid 99); 14 Aug 2017 12:48:01 -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; Mon, 14 Aug 2017 12:48:01 +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 51536C00DD for ; Mon, 14 Aug 2017 12:48:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.453 X-Spam-Level: *** X-Spam-Status: No, score=3.453 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_FONT_LOW_CONTRAST=0.001, 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_SOFTFAIL=0.972] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=data-artisans-com.20150623.gappssmtp.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 rbobt2o53IXX for ; Mon, 14 Aug 2017 12:47:57 +0000 (UTC) Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 6D9CB5F299 for ; Mon, 14 Aug 2017 12:47:57 +0000 (UTC) Received: by mail-wm0-f45.google.com with SMTP id t201so36639188wmt.1 for ; Mon, 14 Aug 2017 05:47:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=data-artisans-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=xo0LXaeIyvaIcsh4p+Hf6797Jkl0E7xRJsasAUSmuoQ=; b=tNI0CbKBktI+ERo+8co/+0Cq89C57v7UoEQ31squYEKpZy51wFXygZMOXZP983mNxB Lkxk5WZRlG8kE8WHQtpksmuyFUhMi3aGoinnVzbgW7GbWBD1RQHIzCp8n5+ny5XTkr9i nS4ZYJWJ41ouEMLA2HCId8/HAA6F0wkheYa+4CCaiAHY/WfwarCcJoX9zELzuqLdyCes A5q8sMCb2930MPtx5ah2A7VjfI9yd8qldm7/oNTLF8xg5/djzJnI/0gdigvDmjb2HLr9 PsFARAxEhysCHc+9qT+6D/8sOyCjfOMqRinHxkc0uKWJsRv561JuegmE8sO+4DMQORA+ jjIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=xo0LXaeIyvaIcsh4p+Hf6797Jkl0E7xRJsasAUSmuoQ=; b=SNTtcplLnmACJu8XVVgqGaS5KPYXky4vBUtCuaJq6tMRHaXMZ6E1Y8YrM8TXxhjrKz vHQBh5C0R7rbcGjFXsRoc4g5wUXX/dWgLGFLzZZr4ddOgTccKtweiLFS6V+IW+4RYh4a qQXzrnPWPMP6sW2qLXkTriIbtYnwN87yRrRtCb/VTSS/vifWXaTNFBylaw1Ch57OuZzE IM0BSj9SiHJ2CZUyPGMppsHzFZOlKzKHdz9NSc7MmdHZdmYYHiJ0CcTstl4BADperm5o i+ismvAn5dwWBvH1slMtEjbq+2OW4J3ymIzMgObIp6W0HPQ6g8Yo+kM+OUAHN/htKRHP eK1A== X-Gm-Message-State: AHYfb5i4/R6ToQREsiXWqAXqsK67T69DhfVqUk6wURa+C+Am1hToqaF/ ZQGg0LhJKy67Kglz X-Received: by 10.28.10.131 with SMTP id 125mr4810834wmk.132.1502714876439; Mon, 14 Aug 2017 05:47:56 -0700 (PDT) Received: from skynet.fritz.box (ipservice-092-219-057-167.092.219.pools.vodafone-ip.de. [92.219.57.167]) by smtp.gmail.com with ESMTPSA id f79sm6471750wmd.19.2017.08.14.05.47.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2017 05:47:55 -0700 (PDT) From: Stefan Richter Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_7835ED4E-E419-43DD-9DD0-32E3165C7E6A" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [EXTERNAL] difference between checkpoints & savepoints Date: Mon, 14 Aug 2017 14:47:54 +0200 In-Reply-To: Cc: "user@flink.apache.org" To: "Raja.Aravapalli" References: <4801540E-8F06-46F8-820B-ED76DF9E1AE5@target.com> <0089A662-9CC8-4157-81A0-C7D3D651547B@data-artisans.com> <28A847C4-A403-46F5-9470-9592BDEC1914@data-artisans.com> <0E2FD4BF-609A-4CB0-A935-E400E719D4FF@target.com> X-Mailer: Apple Mail (2.3273) archived-at: Mon, 14 Aug 2017 12:48:04 -0000 --Apple-Mail=_7835ED4E-E419-43DD-9DD0-32E3165C7E6A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Just noticed that I forgot to include also a reference to the = documentation about externalized checkpoints: = https://ci.apache.org/projects/flink/flink-docs-master/ops/state/checkpoin= ts.html = > Am 14.08.2017 um 14:17 schrieb Stefan Richter = : >=20 >=20 > Hi, >=20 >>=20 >> Also, in the same line, can someone detail the difference between = State Backend & External checkpoint? >> =20 >=20 > Those are two very different things. If we talk about state backends = in Flink, we mean the entity that is responsible for storing and = managing the state inside an operator. This could for example be = something like the FsStateBackend that is based on hash maps and keeps = state on the heap, or the RocksDBStateBackend which is using RocksDB as = a store internally and operates on native memory and disk. >=20 > An externalized checkpoint, like a normal checkpoint, is the = collection of all state in a job persisted to stable storage for = recovery. A little more concrete, this typically means writing out the = contents of the state backends to a save place so that we can restore = them from there. >=20 >> Also, programmatic API, thru which methods we can configure those. >=20 > This explains how to set the backend programatically: >=20 > = https://ci.apache.org/projects/flink/flink-docs-master/ops/state/state_bac= kends.html = >=20 > To activate externalized checkpoints, you activate normal checkpoints, = plus the following line: >=20 > = env.getCheckpointConfig().enableExternalizedCheckpoints(CheckpointConfig.E= xternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION); >=20 > where env is your StreamExecutionEnvironment. >=20 > If you need an example, please take a look at the = org.apache.flink.test.checkpointing.ExternalizedCheckpointITCase. This = class configures everything you asked about programatically. >=20 > Best, > Stefan >=20 --Apple-Mail=_7835ED4E-E419-43DD-9DD0-32E3165C7E6A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Just noticed that I forgot to include also a reference to the = documentation about externalized checkpoints: https://ci.apache.org/projects/flink/flink-docs-master/ops/stat= e/checkpoints.html

Am 14.08.2017 um 14:17 schrieb = Stefan Richter <s.richter@data-artisans.com>:


Hi,


Also, in the = same line, can someone detail the difference between State Backend & = External checkpoint?
 
Those are two very different things. = If we talk about state backends in Flink, we mean the entity that is = responsible for storing and managing the state inside an operator. This = could for example be something like the FsStateBackend that is based on = hash maps and keeps state on the heap, or the RocksDBStateBackend which = is using RocksDB as a store internally and operates on native memory and = disk.

An = externalized checkpoint, like a normal checkpoint, is the collection of = all state in a job persisted to stable storage for recovery. A little = more concrete, this typically means writing out the contents of the = state backends to a save place so that we can restore them from = there.

Also, = programmatic API, thru which methods we can configure = those.

This explains how to set the backend = programatically:

https://ci.apache.org/projects/flink/flink-docs-master/ops/stat= e/state_backends.html

To activate externalized checkpoints, you activate normal = checkpoints, plus the following line:

env.getCheckpointConfig().enableExternalizedCheckpoints(=
CheckpointConfig.ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION);

where env is your StreamExecutionEnvironment.

If you need an example, please take a = look at the org.apache.flink.test.checkpointing.ExternalizedCheckpointITCase. This class configures = everything you asked about programatically.

Best,
Stefan


= --Apple-Mail=_7835ED4E-E419-43DD-9DD0-32E3165C7E6A--