Return-Path: X-Original-To: apmail-apex-dev-archive@minotaur.apache.org Delivered-To: apmail-apex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C4E6185A6 for ; Thu, 17 Dec 2015 19:17:27 +0000 (UTC) Received: (qmail 64649 invoked by uid 500); 17 Dec 2015 19:17:27 -0000 Delivered-To: apmail-apex-dev-archive@apex.apache.org Received: (qmail 64577 invoked by uid 500); 17 Dec 2015 19:17:27 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 64556 invoked by uid 99); 17 Dec 2015 19:17:26 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2015 19:17:26 +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 7A47EC0026 for ; Thu, 17 Dec 2015 19:17:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.999 X-Spam-Level: ** X-Spam-Status: No, score=2.999 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=datatorrent-com.20150623.gappssmtp.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id g7O-rRCmsXw8 for ; Thu, 17 Dec 2015 19:17:17 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id DE86D42A70 for ; Thu, 17 Dec 2015 19:17:16 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id o62so43333865oif.3 for ; Thu, 17 Dec 2015 11:17:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datatorrent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=3h+PhCZ7UfUnXR2ZPvTZkONX896G9CtEi96jd4JAh+M=; b=GWc8d+Yi4dkymslmEqs6bKa8Gs1YRriAKTYHf4rnGEPskcWpddz6FxpmAoZJklkN9i 2S4kJpK+7GiMCAnHXB8locRwD6iC96Imgl+3CNPx83C7Eq3mPoEEY3GrMHxVCx6sZydW jjEPqqzVv5dL9q3XJFpBzF4IBipGk6wMcdvg4RHpPfxXX9uZ3X22VpTVN9agSHlTATqv K5YHaaUWLZalE313J5DvcZHJMtUX++d/YkTPEg1VlF2OT3jelSPhn/JwPiu/0uuMVpPx /d2z2WnQXJT/y0+oolqjATDhIHpDryHQ3lSi6+iGv9+P/diq86KBLxW0xmrXdXorIodq 2SXA== 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:date :message-id:subject:from:to:content-type; bh=3h+PhCZ7UfUnXR2ZPvTZkONX896G9CtEi96jd4JAh+M=; b=QixK4Ilp918yqHKvHhGDMGFvtQ1C6y2fj4PeY3c55d7xFVzlDwVnuqyrnZa3/daAi1 Bp7yC359SJSukM0L40Ebq1NCJUJjTQye7MMTlVpqUesLHZlWBBxqzllI0vup0WqDaDHY WjTarnRWbtUA38Ye6aVyujrLLS/xqVr1uClDkpoZOjlir7ot9x9h+Qtk6K9mnAzP9rK4 JjOXRVZ+Hnst+XzBljJ8JGminSWOBSBssW9fWwkfwYQIMNRyGg6fhXJMRHLqeGbhvezs aY199mEelb06eLRbK62vky//56A9HlL486MlFEVMUnUvdmiC2AwtKU9BWngIrtBOrNtq nsGg== X-Gm-Message-State: ALoCoQkSouwy6Z8uLWhEPZiemS3VTfYGJxroVYz1U2Ccfnao9ufGyAUkacATIo9ZSBjWYjLM4RTr0WZcowHyvCyahcEbRwEa0a7J68zd/vW2OzcRzJZ/w5k= MIME-Version: 1.0 X-Received: by 10.202.229.132 with SMTP id c126mr38107529oih.112.1450379836393; Thu, 17 Dec 2015 11:17:16 -0800 (PST) Received: by 10.202.104.93 with HTTP; Thu, 17 Dec 2015 11:17:16 -0800 (PST) In-Reply-To: References: Date: Thu, 17 Dec 2015 11:17:16 -0800 Message-ID: Subject: Re: Database Output Operator Improvements From: Timothy Farkas To: dev@apex.incubator.apache.org Content-Type: multipart/alternative; boundary=001a1141b7e0f0250f05271cde1b --001a1141b7e0f0250f05271cde1b Content-Type: text/plain; charset=UTF-8 Thanks guys, I remember now that that was done for Hive. Could someone take a look at implementing it for Cassandra Output? On Thu, Dec 17, 2015 at 11:13 AM, Pramod Immaneni wrote: > Tim we have a pattern for this called Reconciler that Gaurav has also > mentioned. There are some examples for it in Malhar > > On Thu, Dec 17, 2015 at 9:47 AM, Timothy Farkas > wrote: > > > Hi All, > > > > One of our users is outputting to Cassandra, but they want to handle a > > Cassandra failure or Cassandra down time gracefully from an output > > operator. Currently a lot of our database operators will just fail and > > redeploy continually until the database comes back. This is a bad idea > for > > a couple of reasons: > > > > 1 - We rely on buffer server spooling to prevent data loss. If the > database > > is down for a long time (several hours or a day) we may run out of space > to > > spool for buffer server since it spools to local disk, and data is purged > > only after a window is committed. Furthermore this buffer server problem > > will exist for all the Streaming Containers in the dag, not just the one > > immediately upstream from the output operator, since data is spooled to > > disk for all operators and only removed for windows once a window is > > committed. > > > > 2 - If there is another failure further upstream in the dag, upstream > > operators will be redeployed to a checkpoint less than or equal to the > > checkpoint of the database operator in the At leas once case. This could > > mean redoing several hours or a day worth of computation. > > > > We should support a mechanism to detect when the connection to a database > > is lost and then spool to hdfs using a WAL, and then write the contents > of > > the WAL into the database once it comes back online. This will save the > > local disk space of all the nodes used in the dag and allow it to be used > > for only the data being output to the output operator. > > > > Ticket here if anyone is interested in working on it: > > > > https://malhar.atlassian.net/browse/MLHR-1951 > > > > Thanks, > > Tim > > > --001a1141b7e0f0250f05271cde1b--