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 BACC8200AE8 for ; Tue, 3 May 2016 11:10:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B9DEF1609F4; Tue, 3 May 2016 11:10:41 +0200 (CEST) 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 E85051609F3 for ; Tue, 3 May 2016 11:10:40 +0200 (CEST) Received: (qmail 15934 invoked by uid 500); 3 May 2016 09:10:40 -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 15924 invoked by uid 99); 3 May 2016 09:10:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2016 09:10:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5DDCDC015A for ; Tue, 3 May 2016 09:10:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id tbuTt4vxwcj9 for ; Tue, 3 May 2016 09:10:38 +0000 (UTC) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id E7C2C5F3A0 for ; Tue, 3 May 2016 09:10:37 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id n129so137813065wmn.1 for ; Tue, 03 May 2016 02:10:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=DKhSRaFO8SLMcKEFxdGHd4xpZbTcPul2FZAxs3x5hx4=; b=KbJCITBHMXIK27YKgKCk4aRCZt77HzAnMQJDAIyG6bSfWV8X8SHjg6ADPRdyzRrTA5 8/CQTUSiqKQ+TWnFxJbhRuMkt2wEOFRYldorr+McanTTUXoHX+0GMuQbCCfybyLZAZAC 0zRDOOus0dZxXlo4NcqHgYcPTvRdZC9WiR6xbZXTG7pEZEmXU2pV+Id0z+wnDlqHy686 zYADLNlz0tzKLk0xAdiUe1q0P+do/0fb4+0GvVriyQQI1Krr85Gm2S4yeLcFwYNNlTja wzQCdumgvf7Uo2Qi5keLRPrmV/qeLDeiCE6HsaZpzLFKeNMpYeSBQVTOUbABHN/3ndl1 898A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=DKhSRaFO8SLMcKEFxdGHd4xpZbTcPul2FZAxs3x5hx4=; b=W+ZaPbtlu3JdtSolM1FXgaBJazuKd1VRrl+jobWGQ/S7oxQG2Aed67OcWXLnow+4tx UbyGh9RW+rawO9QQ1hkbCCeGRyfzq6epUkSlDYQBxk/v9Zg1rcolZ/FPbTZd7ibnzhDp jpRfmHZoPqN57138S4J3mVTcIh+VemNqDDcmdgb5SwsYkrLzdLo5vNziar/sMlGnvwIf z7PbAniVRDhSOy4/NKGM2bxr5WFLnee3tuu6xr8AU3Y9TeQVmtWo2eNMa8W9pYwyRQ0w PRm31uIwDV3W/At2uhmcsmq/BJ7CuI9ceGj118q2Nmw5KYZPw2OGRwRO7jRLvnyyEm+Z UVEw== X-Gm-Message-State: AOPr4FVVArw8+V45fsjY7Z93yvqXxIznKFyrsGmLW5uQ1eWkYcQ7EDCYpqyi4IUD6c0q8w/YXpSFpohc1bWt8g== X-Received: by 10.194.138.37 with SMTP id qn5mr1661637wjb.108.1462266636437; Tue, 03 May 2016 02:10:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.29.84 with HTTP; Tue, 3 May 2016 02:10:07 -0700 (PDT) In-Reply-To: References: From: Fabian Hueske Date: Tue, 3 May 2016 11:10:07 +0200 Message-ID: Subject: Re: Sink - writeAsText problem To: user@flink.apache.org Content-Type: multipart/alternative; boundary=bcaec50fe6dd6e8d4c0531ec7bed archived-at: Tue, 03 May 2016 09:10:41 -0000 --bcaec50fe6dd6e8d4c0531ec7bed Content-Type: text/plain; charset=UTF-8 Yes, but be aware that your program runs with parallelism 1 if you do not configure the parallelism. 2016-05-03 11:07 GMT+02:00 Punit Naik : > Hi Stephen, Fabian > > setting "fs.output.always-create-directory" to true in flink-config.yml > worked! > > On Tue, May 3, 2016 at 2:27 PM, Stephan Ewen wrote: > >> Hi! >> >> There is the option to always create a directory: >> "fs.output.always-create-directory" >> >> See >> https://ci.apache.org/projects/flink/flink-docs-release-1.0/setup/config.html#file-systems >> >> Greetings, >> Stephan >> >> >> On Tue, May 3, 2016 at 9:26 AM, Punit Naik >> wrote: >> >>> Hello >>> >>> I executed my Flink code in eclipse and it properly generated the output >>> by creating a folder (as specified in the string) and placing output files >>> in them. >>> >>> But when I exported the project as JAR and ran the same code using >>> ./flink run, it generated the output, but instead of creating a folder with >>> files in it, it just created a single file (as specified in the string) >>> (output was correct though). >>> >>> Why does this happen? I want Flink to write its output in folder. >>> >>> -- >>> Thank You >>> >>> Regards >>> >>> Punit Naik >>> >> >> > > > -- > Thank You > > Regards > > Punit Naik > --bcaec50fe6dd6e8d4c0531ec7bed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, but be aware that your program runs with parallelism = 1 if you do not configure the parallelism.

2016-05-03 11:07 GMT+02:00 Punit Naik <naik.punit44@gmail.com>:
Hi Stephen, Fabian

setting "fs.o= utput.always-create-directory" to true in flink-config.yml worked!
=
On Tue, May 3, 2016 at 2:27 PM, Stephan Ewen <= span dir=3D"ltr"><= sewen@apache.org> wrote:
Hi!

There is the option to always create a dir= ectory: "fs.output.always-create-directory"

See https://ci.apache.org/projects/flink/fl= ink-docs-release-1.0/setup/config.html#file-systems

Greetings,Stephan


On Tue, May 3, 2016 at 9:26 AM, Punit Naik <naik.punit44@gmail.com= > wrote:
<= div>
Hello

I executed my Flink code in eclipse and it= properly generated the output by creating a folder (as specified in the st= ring) and placing output files in them.

But when I exported th= e project as JAR and ran the same code using ./flink run, it generated the = output, but instead of creating a folder with files in it, it just created = a single file (as specified in the string) (output was correct though).
=
Why does this happen? I want Flink to write its output in folder.=

-- =
Thank You

Regards

<= /div>Punit Naik




--
Thank You

Regards

Punit Naik=

--bcaec50fe6dd6e8d4c0531ec7bed--