From user-return-60526-apmail-spark-user-archive=spark.apache.org@spark.apache.org Mon Aug 1 06:40:08 2016 Return-Path: X-Original-To: apmail-spark-user-archive@minotaur.apache.org Delivered-To: apmail-spark-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B9D3219E0D for ; Mon, 1 Aug 2016 06:40:08 +0000 (UTC) Received: (qmail 29225 invoked by uid 500); 1 Aug 2016 06:40:00 -0000 Delivered-To: apmail-spark-user-archive@spark.apache.org Received: (qmail 29090 invoked by uid 500); 1 Aug 2016 06:40:00 -0000 Mailing-List: contact user-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@spark.apache.org Received: (qmail 29078 invoked by uid 99); 1 Aug 2016 06:40:00 -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; Mon, 01 Aug 2016 06:40:00 +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 1B57D18064C for ; Mon, 1 Aug 2016 06:40:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.99 X-Spam-Level: * X-Spam-Status: No, score=1.99 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_KAM_HTML_FONT_INVALID=0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=askme-in.20150623.gappssmtp.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id hTasJNJt82BG for ; Mon, 1 Aug 2016 06:39:52 +0000 (UTC) Received: from mail-yw0-f175.google.com (mail-yw0-f175.google.com [209.85.161.175]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 0DEDE611E0 for ; Mon, 1 Aug 2016 06:39:47 +0000 (UTC) Received: by mail-yw0-f175.google.com with SMTP id r9so164478136ywg.0 for ; Sun, 31 Jul 2016 23:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=askme-in.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=S67d0DT3kCZD9qHjivTLXS8zSKnqSoGiYBRj9/cK6dM=; b=PYS3CfrpVw6sAvSdon/8bCQ/OJhEm6g0444C9pXjDhxfqHc3MZgltvZd4LVBcg19KA GhfZN33il1FQ4e1JDOv1OBCJRHibPdmx39+0vVXEWs22wzT0c/XOCM3m1hzmhg136QH5 OKwPWf8u8Gm38TjWA3Bi/X1tffcif+I2cHTBj5/ZeiKHiT9S/7aEvEXnfXhdv1SNTEKb 5CVmDbAjN7Tgt9m5YAemZf4Gw7kP3yFw5isIejFtTlzC6CBY+xU8Awb8zDcVvfHChknO iXO/VfjY1wFk7LQRqJLYdguD4001V335vkSNNtiI1A3VdkP3JVQ7GdsAGuKJAQxIxYqn DJ/A== 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=S67d0DT3kCZD9qHjivTLXS8zSKnqSoGiYBRj9/cK6dM=; b=joU82NE+/4NhMLmRB6iK+kl0N29XsoVq97n7BqZf6x2Fm+uiTl7omsFwGTCKowYbp3 h3qzuML80aUieEQ+mOhQWY600xgJ4LPCcS6feuZz/aVZXbzvdZrGL/wTlOvse9gboLHf MCqZM0wVmQUHCTU2A56HOQwletrXiPPgjKo1KxLmQ5QWRme+ZFtLmJ0k3tS5j63lawk0 8WXzoENZSMYKK4cNVeduIIgCdFI1q6NxRZrwUQY24zDt8puTSBgfDyui+D8hH5iMVq/j MPV/TOLCIS1jLKWCvDovfmrY3K412lcG0YJmmrS8pvtYzEc9pFrIPqlcUTKBB7rech1C /eVg== X-Gm-Message-State: AEkoout+O5vXeKd85ob2u8ckjNQs8XPt0If6YtJctWpZi5oTY3jxuBTpid3U8j4uXYlMo9oyoanNUUc4qIamFSi4 X-Received: by 10.129.109.131 with SMTP id i125mr45881706ywc.220.1470033587119; Sun, 31 Jul 2016 23:39:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.119.134 with HTTP; Sun, 31 Jul 2016 23:39:46 -0700 (PDT) In-Reply-To: References: From: Sumit Khanna Date: Mon, 1 Aug 2016 12:09:46 +0530 Message-ID: Subject: Re: multiple spark streaming contexts To: user Content-Type: multipart/alternative; boundary=001a114dd12ac4d66a0538fcddc9 --001a114dd12ac4d66a0538fcddc9 Content-Type: text/plain; charset=UTF-8 Any ideas guys? What are the best practices for multiple streams to be processed? I could trace a few Stack overflow comments wherein they better recommend a jar separate for each stream / use case. But that isn't pretty much what I want, as in it's better if one / multiple spark streaming contexts can all be handled well within a single jar. Guys please reply, Awaiting, Thanks, Sumit On Mon, Aug 1, 2016 at 12:24 AM, Sumit Khanna wrote: > Any ideas on this one guys ? > > I can do a sample run but can't be sure of imminent problems if any? How > can I ensure different batchDuration etc etc in here, per StreamingContext. > > Thanks, > > On Sun, Jul 31, 2016 at 10:50 AM, Sumit Khanna > wrote: > >> Hey, >> >> Was wondering if I could create multiple spark stream contexts in my >> application (e.g instantiating a worker actor per topic and it has its own >> streaming context its own batch duration everything). >> >> What are the caveats if any? >> What are the best practices? >> >> Have googled half heartedly on the same but the air isn't pretty much >> demystified yet. I could skim through something like >> >> >> http://stackoverflow.com/questions/29612726/how-do-you-setup-multiple-spark-streaming-jobs-with-different-batch-durations >> >> >> http://stackoverflow.com/questions/37006565/multiple-spark-streaming-contexts-on-one-worker >> >> Thanks in Advance! >> Sumit >> > > --001a114dd12ac4d66a0538fcddc9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Any ideas guys? What are the best practices for multiple s= treams to be processed?
I could trace a few Stack overflow comments whe= rein they better recommend a jar separate for each stream / use case. But t= hat isn't pretty much what I want, as in it's better if one / multi= ple spark streaming contexts can all be handled well within a single jar.

Guys please reply,=C2=A0

A= waiting,

Thanks,
Sumit=C2=A0
=

On Mon, Aug 1, 20= 16 at 12:24 AM, Sumit Khanna <sumit.khanna@askme.in> wro= te:
Any ideas on this on= e guys ?

I can do a sample run but can't be sure of = imminent problems if any? How can I ensure different batchDuration etc etc = in here, per StreamingContext.

Thanks,
=

On Sun, Jul 31, 2016 at 10:50 AM, Sumit Khanna <sumit.khanna@askme.in> wrote:
Hey,

Was wondering if I could creat= e multiple spark stream contexts in my application (e.g instantiating a wor= ker actor per topic and it has its own streaming context its own batch dura= tion everything).

What are the caveats if any?
What are the best practices?

Have googled h= alf heartedly on the same but the air isn't pretty much demystified yet= . I could skim through something like=C2=A0


Sumit


--001a114dd12ac4d66a0538fcddc9--