Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io 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 4280D166696 for ; Tue, 22 Aug 2017 09:51:55 +0200 (CEST) Received: (qmail 37561 invoked by uid 500); 22 Aug 2017 07:51:54 -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 37544 invoked by uid 99); 22 Aug 2017 07:51:54 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2017 07:51:54 +0000 Received: from mail-qt0-f182.google.com (mail-qt0-f182.google.com [209.85.216.182]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id F0E111A02CF for ; Tue, 22 Aug 2017 07:51:52 +0000 (UTC) Received: by mail-qt0-f182.google.com with SMTP id d15so22916680qta.0 for ; Tue, 22 Aug 2017 00:51:51 -0700 (PDT) X-Gm-Message-State: AHYfb5jMQTfD8D8TRZetHnFrpo33i4xODPT3PvJZS+7dy0UtoS3pTFGg zIhqrlpC3lNMLcd0x1IHYh65mWMRjA== X-Received: by 10.200.25.168 with SMTP id u37mr18291155qtj.49.1503388310374; Tue, 22 Aug 2017 00:51:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.168.214 with HTTP; Tue, 22 Aug 2017 00:51:09 -0700 (PDT) In-Reply-To: References: From: Till Rohrmann Date: Tue, 22 Aug 2017 09:51:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Deleting files in continuous processing To: Mohit Anchlia Cc: user Content-Type: multipart/alternative; boundary="001a114ca06633129b055752def2" --001a114ca06633129b055752def2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Mohit, Flink does not support this behaviour out of the box afaik. I think you have to write your own source function or extend ContinuousFileMonitoringFunction in order to do that. Cheers, Till =E2=80=8B On Mon, Aug 21, 2017 at 11:07 PM, Mohit Anchlia wrote: > Just checking to see if there is a way to purge files after it's processe= d. > > On Tue, Aug 15, 2017 at 5:11 PM, Mohit Anchlia > wrote: > >> Is there a way to delete a file once it has been processed? >> >> streamEnv >> >> .readFile(format, args[0], FileProcessingMode.*PROCESS_CONTINUOUSLY*, >> 2000) >> > > --001a114ca06633129b055752def2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi Mohit,

Flink does not support this beh= aviour out of the box afaik. I think you have to write your own source func= tion or extend ContinuousFileMonitoringFunction in = order to do that.

Cheers,
Till

=E2=80= =8B

On Mon, Aug 21, 2017 at 11:07 PM, Mohit Anchlia <<= a href=3D"mailto:mohitanchlia@gmail.com" target=3D"_blank">mohitanchlia@gma= il.com> wrote:
Just checking to see if there is a way to purge files after it's p= rocessed.

On Tue, Aug 15, 2017 at 5:11 PM, Mohi= t Anchlia <mohitanchlia@gmail.com> wrote:
Is there a way to delete a file = once it has been processed?

streamEnv=

.readFile(format, args[0], Fi= leProcessingMode.PROCESS_CONTINUOUSLY, 2000)



--001a114ca06633129b055752def2--