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 4FC8A200B40 for ; Fri, 1 Jul 2016 19:28:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4E66E160A61; Fri, 1 Jul 2016 17:28:45 +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 96AEE160A4D for ; Fri, 1 Jul 2016 19:28:44 +0200 (CEST) Received: (qmail 45852 invoked by uid 500); 1 Jul 2016 17:28:43 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 45840 invoked by uid 99); 1 Jul 2016 17:28:43 -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; Fri, 01 Jul 2016 17:28:43 +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 9A36EC034F for ; Fri, 1 Jul 2016 17:28:42 +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 mx1-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 QeGcu7MwabRc for ; Fri, 1 Jul 2016 17:28:40 +0000 (UTC) Received: from mail-qt0-f175.google.com (mail-qt0-f175.google.com [209.85.216.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E4D465FB0A for ; Fri, 1 Jul 2016 17:28:39 +0000 (UTC) Received: by mail-qt0-f175.google.com with SMTP id w59so61097842qtd.3 for ; Fri, 01 Jul 2016 10:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=XTgBjRINV72Lof2XI/i9od2KRWfw0m/OWiQdYVNywvw=; b=yhxDnmCI79DcuxW12cELhS9T7doUzONashv3xHRbFtm9EmCc9R7ZB5jr/FwtspqHPD K/muC/nwyeXjPWxCO0pFMt8R8UpMzMUkviA300gDme8T211WMtA/me8AXbXhvb4mSr+U PNappuMA/KV7TMhkJtiIhWBvBNRfexMY0goUOVrZmzfdVGnweGzFCIykfor8FyEF1HP0 pQIXzpk288ZhT7YQhQEUeDspAcGucwKja89/AyUbsBcSmkT26X4bTxM1f0zZtXY+fUmp /ELsAPin3xNBWqPzvPaC+WID1vFhO8BnGmF/lQTpKQxyZY93O2A0sGgHK1PZk2ZiwfvE dABw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=XTgBjRINV72Lof2XI/i9od2KRWfw0m/OWiQdYVNywvw=; b=Uiii+LCW/0fUa5JXQMGE64JhHas3BGhgvv3E1xxKx7zZL79zioqxnpwGLxOZJ+7b6W si85K3Fme6CJ8+g2+nQfQaBb2LZyWIqQMyQXt/LnPZDjBJjpZAUF801YyYZyvgW0k2qr 006Qm8ADbfHMIZXGrEoQlkUU0923glnquSUHLO816sPZh5IyJjaZ44nvtZGKafJK6Oas 2U92NeeEllAV3ItUEYl6dYqCNGRnt8eIl5yNDnfDEbZDTMpef+WABoCkJDJhcnXMzI1q T7m8wt5nKvDXrptdjhoughbEn+ekdHx8REDrdzL66p/ohmvftfk+TbVKS+Tnz0pQUQ2y YbTw== X-Gm-Message-State: ALyK8tKlDtSClN/E6wX0VWdI0//gW1ZOg65h+bf+RgxA+kNukxQaDENN3qna4CoEpsZjvdWda+G3NwDhxPRtFA== X-Received: by 10.237.36.108 with SMTP id s41mr34124771qtc.66.1467394119070; Fri, 01 Jul 2016 10:28:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.162.145 with HTTP; Fri, 1 Jul 2016 10:28:38 -0700 (PDT) From: rahul gidwani Date: Fri, 1 Jul 2016 10:28:38 -0700 Message-ID: Subject: inotify To: hdfs-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a1135626e367ddf0536965121 archived-at: Fri, 01 Jul 2016 17:28:45 -0000 --001a1135626e367ddf0536965121 Content-Type: text/plain; charset=UTF-8 Hello kind folks, I was wondering if anyone would be interested in adding a AddBlock Event to the inotify pipeline? We were thinking about using Inotify for hdfs replication to another datacenter. Right now the problem is with the appends. We get a notification when an append starts with an AppendEvent and then we know the file is complete when we get a CloseEvent. This would increase our latency considerably. So if we could add an AddBlockEvent whenever we get an OP_ADD_BLOCK that would give us the ability to ship blocks. This would basically give us an ExtendedBlock and then we could ask the namenode to give us the corresponding LocatedBlock which we could just get a stream of bytes ready to ship to our destination cluster. Is this something the community would be interested in? Thank you rahul --001a1135626e367ddf0536965121--