You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Brajendra Mishra <br...@persistent.com> on 2018/05/25 12:46:46 UTC

How to capture failure bulletins in custom processor

Hi Team,

Could you please let me know how can I get bulletins when failure has happened in executing flow file?
I need to capture these bulletins in  custom processor (java code) and want to send to next processor where I will create new error message in desired format.

Brajendra Mishra

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

Re: How to capture failure bulletins in custom processor

Posted by Pierre Villard <pi...@gmail.com>.
Hi,

Here is an article I wrote few months ago if it can help you getting
started:
https://pierrevillard.com/2017/05/13/monitoring-nifi-site2site-reporting-tasks/

Pierre

2018-05-25 14:52 GMT+02:00 Matt Burgess <ma...@apache.org>:

> You can use a SiteToSiteBulletinReportingTask [1], it will send flow
> files containing bulletins to an Input Port on the root process group
> (aka top-level canvas), then you can send to whichever processors you
> like for further operations.
>
> Regards,
> Matt
>
> [1] https://nifi.apache.org/docs/nifi-docs/components/org.
> apache.nifi/nifi-site-to-site-reporting-nar/1.6.0/org.
> apache.nifi.reporting.SiteToSiteBulletinReportingTask/index.html
>
>
> On Fri, May 25, 2018 at 8:46 AM, Brajendra Mishra
> <br...@persistent.com> wrote:
> > Hi Team,
> >
> > Could you please let me know how can I get bulletins when failure has
> happened in executing flow file?
> > I need to capture these bulletins in  custom processor (java code) and
> want to send to next processor where I will create new error message in
> desired format.
> >
> > Brajendra Mishra
> >
> > DISCLAIMER
> > ==========
> > This e-mail may contain privileged and confidential information which is
> the property of Persistent Systems Ltd. It is intended only for the use of
> the individual or entity to which it is addressed. If you are not the
> intended recipient, you are not authorized to read, retain, copy, print,
> distribute or use this message. If you have received this communication in
> error, please notify the sender and delete all copies of this message.
> Persistent Systems Ltd. does not accept any liability for virus infected
> mails.
>

Re: How to capture failure bulletins in custom processor

Posted by Matt Burgess <ma...@apache.org>.
You can use a SiteToSiteBulletinReportingTask [1], it will send flow
files containing bulletins to an Input Port on the root process group
(aka top-level canvas), then you can send to whichever processors you
like for further operations.

Regards,
Matt

[1] https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-site-to-site-reporting-nar/1.6.0/org.apache.nifi.reporting.SiteToSiteBulletinReportingTask/index.html


On Fri, May 25, 2018 at 8:46 AM, Brajendra Mishra
<br...@persistent.com> wrote:
> Hi Team,
>
> Could you please let me know how can I get bulletins when failure has happened in executing flow file?
> I need to capture these bulletins in  custom processor (java code) and want to send to next processor where I will create new error message in desired format.
>
> Brajendra Mishra
>
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.