Return-Path: X-Original-To: apmail-nifi-dev-archive@minotaur.apache.org Delivered-To: apmail-nifi-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 65FB519837 for ; Wed, 27 Apr 2016 14:27:45 +0000 (UTC) Received: (qmail 40236 invoked by uid 500); 27 Apr 2016 14:27:45 -0000 Delivered-To: apmail-nifi-dev-archive@nifi.apache.org Received: (qmail 40194 invoked by uid 500); 27 Apr 2016 14:27:45 -0000 Mailing-List: contact dev-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list dev@nifi.apache.org Received: (qmail 40179 invoked by uid 99); 27 Apr 2016 14:27:44 -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, 27 Apr 2016 14:27:44 +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 2C6D418021A for ; Wed, 27 Apr 2016 14:27:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 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_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] 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 wvoFS28pydFJ for ; Wed, 27 Apr 2016 14:27:41 +0000 (UTC) Received: from mail-yw0-f175.google.com (mail-yw0-f175.google.com [209.85.161.175]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2A3845F19A for ; Wed, 27 Apr 2016 14:27:41 +0000 (UTC) Received: by mail-yw0-f175.google.com with SMTP id j74so73997106ywg.1 for ; Wed, 27 Apr 2016 07:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=62Bj8J1Iut3jQDT2uHTLNbij2dO7cTyXlIjuVYlxn6w=; b=IQLP0kD0yXWwHj9t6qfP+0tyAR7obRGJDCzFGAlxpN4Q26dz0WK0c6n7L9CWHQXmo2 +wputXKt4yU2SU6Xmh3smOzqh+DVlncwZuciaCnxH/+iv1p7Fcr1MO9Hh1QbbF4uZNLN 95OpkUeXlY4xjRii5Qm3TpDbz+ZrYXEAeNtxxDNK3ydTNvkdjPTHCpY4R3EXCTq1B0tG WEfgO1yeCcXJcKQNKS7fa8JKzPuQYieKet57YxwGbA1a+4iQN/eNlPKzhsfB/fHgqUAr yUQtPXimVew37ywVqq2REq3GxG+IQgqpClPKGgNEPnSLyDGbuaM2x4nwGWGBooje4a8g Vndw== 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; bh=62Bj8J1Iut3jQDT2uHTLNbij2dO7cTyXlIjuVYlxn6w=; b=Aff9U3F8+NUvUJ26bUIXZdMZa9voFZ0UntaMPPD3eGudTaTtvieAe1nm1H4SryYu8k X0epHDJlP/Kl6/qag5KQQgbCoQlGgdKRtygDMBPXmqTf2iK97extISsE+3xeiorOl2AR IkRMzkQDZXCdHgGGF+pJ/FmdR44OdTbnCgDd8P8sYq+KBXf+fM7DKC6xXbulGFF/klax LdWJd3FhxN7j1ClVhcluf+VP/8s+t4vyqpCvAQsl1MRDVcNBeRGbp8CgKm1tYLj8N6OS aYJkNroIBWOxANvUeMJj7r1PG8G935pBhAaQcu9coFY8JnDGXzrQRdC8jIksjLueo39K 7o0Q== X-Gm-Message-State: AOPr4FVo0C1mKlSqKLPA8RwXfP+Fo0SERuTqyNV4NZgTPs5FjQuOPHpz2bBRj/sCHdlL5WKCXxIgQyzO5so5Zg== MIME-Version: 1.0 X-Received: by 10.176.69.235 with SMTP id u98mr4548381uau.131.1461767254554; Wed, 27 Apr 2016 07:27:34 -0700 (PDT) Received: by 10.31.162.83 with HTTP; Wed, 27 Apr 2016 07:27:34 -0700 (PDT) In-Reply-To: <05bb55dd1d954a8c975cc7d26ae6e9a2@MBX3.impetus.co.in> References: <642898ab151e4efd85c60118975a28fa@MBX3.impetus.co.in> <1461694705982.66875@impetus.co.in> <05bb55dd1d954a8c975cc7d26ae6e9a2@MBX3.impetus.co.in> Date: Wed, 27 Apr 2016 10:27:34 -0400 Message-ID: Subject: Re: Reg: Issues in Custom Processor From: Bryan Bende To: dev@nifi.apache.org Content-Type: multipart/alternative; boundary=94eb2c11c4c2f3c14005317835a0 --94eb2c11c4c2f3c14005317835a0 Content-Type: text/plain; charset=UTF-8 Hi Sourav, Are you able to share any of the code from your onTrigger method so we can see how you are opening/closing the file reader? -Bryan On Wed, Apr 27, 2016 at 7:43 AM, Sourav Gulati wrote: > I have introduced yield of 5 secs and after that it started working as > expected. > > Regards, > Sourav Gulati > > -----Original Message----- > From: Sourav Gulati [mailto:sourav.gulati@impetus.co.in] > Sent: Wednesday, April 27, 2016 11:34 AM > To: dev@nifi.apache.org > Subject: RE: Reg: Issues in Custom Processor > > Joe, > > Now I have increased number of open files limit. > ulimit -n > 50000 > > How still I am seeing same exception > > Regards, > Sourav Gulati > > -----Original Message----- > From: Sourav Gulati [mailto:sourav.gulati@impetus.co.in] > Sent: Tuesday, April 26, 2016 11:48 PM > To: dev@nifi.apache.org > Subject: Re: Reg: Issues in Custom Processor > > Thanks Joe. I will try and update you > > Regards, > Sourav Gulati > Big Data > > > ________________________________________ > From: Joe Witt > Sent: Tuesday, April 26, 2016 11:26 PM > To: dev@nifi.apache.org > Subject: Re: Reg: Issues in Custom Processor > > Sourav, > > On twitter you asked "why is it opening so many file handles" > > Your processor is not. It may well be just fine. However, at startup nifi > loads many files into the classloader and it is at the point now where it > references more than 1024 objects (files, sockets, etc..) so it is > important to set a higher default. > > I encourage you to go ahead and follow the best practices mentioned in the > documentation and I suspect you'll find your custom processor is doing what > you expected. > > Thanks > Joe > > On Tue, Apr 26, 2016 at 1:47 PM, Joe Witt wrote: > > Sourav, > > > > Please make sure you've followed these recommendations > > https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html# > > configuration-best-practices > > > > Specifically make sure you update the max open file handles. > > > > Thanks > > Joe > > > > On Tue, Apr 26, 2016 at 9:34 AM, Sourav Gulati > > wrote: > >> Hi Team, > >> > >> I am using "@TriggerSerially" annotation while creating processor and > inside "On Trigger" method I am creating a file reader and after doing the > processing I am closing the reader connection as well. As per my > assumption, if I am using @TriggerSerially, then "On trigger" method runs > in serial fashion. > >> > >> However, while executing processor I am getting "too many open files" > error . I check with lsof command as well, it has opened lot of reader > connections to file. > >> > >> What should I change ? Need urgent help > >> > >> > >> > >> Regards, > >> Sourav Gulati > >> > >> > >> ________________________________ > >> > >> > >> > >> > >> > >> > >> NOTE: This message may contain information that is confidential, > proprietary, privileged or otherwise protected by law. The message is > intended solely for the named addressee. If received in error, please > destroy and notify the sender. Any use of this email is prohibited when > received in error. Impetus does not represent, warrant and/or guarantee, > that the integrity of this communication has been maintained nor that the > communication is free of errors, virus, interception or interference. > > ________________________________ > > > > > > > NOTE: This message may contain information that is confidential, > proprietary, privileged or otherwise protected by law. The message is > intended solely for the named addressee. If received in error, please > destroy and notify the sender. Any use of this email is prohibited when > received in error. Impetus does not represent, warrant and/or guarantee, > that the integrity of this communication has been maintained nor that the > communication is free of errors, virus, interception or interference. > > ________________________________ > > > > > > > NOTE: This message may contain information that is confidential, > proprietary, privileged or otherwise protected by law. The message is > intended solely for the named addressee. If received in error, please > destroy and notify the sender. Any use of this email is prohibited when > received in error. Impetus does not represent, warrant and/or guarantee, > that the integrity of this communication has been maintained nor that the > communication is free of errors, virus, interception or interference. > > ________________________________ > > > > > > > NOTE: This message may contain information that is confidential, > proprietary, privileged or otherwise protected by law. The message is > intended solely for the named addressee. If received in error, please > destroy and notify the sender. Any use of this email is prohibited when > received in error. Impetus does not represent, warrant and/or guarantee, > that the integrity of this communication has been maintained nor that the > communication is free of errors, virus, interception or interference. > --94eb2c11c4c2f3c14005317835a0--