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 A698A200A5B for ; Wed, 25 May 2016 12:31:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A57E9160A18; Wed, 25 May 2016 10:31: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 C5519160A17 for ; Wed, 25 May 2016 12:31:03 +0200 (CEST) Received: (qmail 84040 invoked by uid 500); 25 May 2016 10:31:02 -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 84030 invoked by uid 99); 25 May 2016 10:31:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2016 10:31:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6664F1804C3 for ; Wed, 25 May 2016 10:31:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.293 X-Spam-Level: *** X-Spam-Status: No, score=3.293 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Gb1Pgh0Jn7eP for ; Wed, 25 May 2016 10:31:00 +0000 (UTC) Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A61D95F484 for ; Wed, 25 May 2016 10:30:59 +0000 (UTC) Received: by mail-it0-f47.google.com with SMTP id e62so69117328ita.1 for ; Wed, 25 May 2016 03:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to; bh=eSx/0iXuf1dGppKH0W5CXeY46D7NPCs73MFXwrmILSU=; b=rvZy6ydVRa2ys7hsDo0Dq5eAec3ho9Am0Frg16yZM3HjycM67RvyJkYPD0rm5CtQfv NMA6ouzP/5GuyXe9tH+eanAVpE3cfwmYKzssV40sMM6s5gdoFEJFmJjDi0DPA6VXehBf nHmF6bawAi6DEP9udmHA+fPYUeR64k5+Zp5SxxM65sE6c0mRZUq098iYT4O+CGhXDVjX ikXvRfzhElIZLZaVC0P+Gn0vzN24AxSaIMt/MtwDo6UTAnYo49Ich874pJgfcdcP+7y6 YpoliOZyGKCJYaOanRNcsLVIQSoBCRRyE106hdWnIvseVIbpn5Wo/mA6QAV2zP9snNgS X3qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=eSx/0iXuf1dGppKH0W5CXeY46D7NPCs73MFXwrmILSU=; b=c7V4rdDVZ5r2ZnN8iPnrRbZBNuvS/gFNWjT+Y60f3cOEKGE3Y520bZPY2BVYK3cGJ4 A9jA5we2FvuV7H1Xf8QEzsWCAA7A9r6X6wU9lteMI4y5x8PPql+Lg5vBBN+Ca2d1ZC7s ylOSvdrpWORsQ1z+H03ySCVlstitepBhC1Zlg99M9hX5paEGxzR0ctMqkegdtKMyYDXw dRMThy3jZUKuW4ccJ9mtmI9ZwJAFc01eJYhUs69qzk2KHNUH4NZu+uuNt2zUTdxvQB9Z N6STGl7KVKuVAyUu6KA8a0skFk4zC2aryLrS4sBmqMRIaaBSmtzFLMKmJYytM0pass/q QNJg== X-Gm-Message-State: ALyK8tIepAodLLm6v8SH7NjAmvMwA1AukdIiVuDuNZR7bwHY+dKvHLUE3Gb0JGetbFvHd5CpPcdL2NXK4BMyEQ== MIME-Version: 1.0 X-Received: by 10.36.46.67 with SMTP id i64mr16431290ita.60.1464172251759; Wed, 25 May 2016 03:30:51 -0700 (PDT) Sender: ewenstephan@gmail.com Received: by 10.107.15.207 with HTTP; Wed, 25 May 2016 03:30:51 -0700 (PDT) In-Reply-To: <1464169848193-7159.post@n4.nabble.com> References: <1464118719808-7134.post@n4.nabble.com> <1464169848193-7159.post@n4.nabble.com> Date: Wed, 25 May 2016 12:30:51 +0200 X-Google-Sender-Auth: VXjYw0wNc5UVp28wy4cgnFK8Kbs Message-ID: Subject: Re: Data ingestion using a Flink TCP Server From: Stephan Ewen To: user@flink.apache.org Content-Type: multipart/alternative; boundary=001a114a78eef4cc8e0533a82a2f archived-at: Wed, 25 May 2016 10:31:04 -0000 --001a114a78eef4cc8e0533a82a2f Content-Type: text/plain; charset=UTF-8 Hi! A typical example of a parallel source is the Kafka Source. Actually, other threads than the main run() thread can call ctx.collect(), provided they use the checkpoint lock properly. The Kafka source does that. Stephan On Wed, May 25, 2016 at 11:50 AM, omaralvarez wrote: > Hi, > > Thank you very much for your answer. There is one more doubt in my mind. > How > are not parallelized source funtions processed? For instance, lets say I > have four streams that implement SourceFunction, will they be placed on > different parallel instances or will they be processed sequentially by the > same instance? > > Could you direct me to an example of a ParallelSourceFunction, because > looking at the code I don't see an interface or any implementation example > in the documentation. > > Best, > > Omar. > > > > -- > View this message in context: > http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Data-ingestion-using-a-Flink-TCP-Server-tp7134p7159.html > Sent from the Apache Flink User Mailing List archive. mailing list archive > at Nabble.com. > --001a114a78eef4cc8e0533a82a2f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

A typical example of a parallel sou= rce is the Kafka Source.

Actually, other threads t= han the main run() thread can call ctx.collect(), provided they use the che= ckpoint lock properly. The Kafka source does that.

Stephan


On Wed, May 25, 2016 at 11:50 AM, omaralvarez <xx= osurfer3xx@gmail.com> wrote:
http://apache-flink-u= ser-mailing-list-archive.2336050.n4.nabble.com/Data-ingestion-using-a-Flink= -TCP-Server-tp7134p7159.html
Sent from the Apache Flink User Mai= ling List archive. mailing list archive at Nabble.com.

--001a114a78eef4cc8e0533a82a2f--