Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Apache Nifi - Reset Counter

Highlighted

Apache Nifi - Reset Counter

97443-example.png

Hello, I use a counter in my stream with the publish name, however, I need to clear this counter after sending the trailler to rabbitmq. Please, what is the best way to do this procedure by Nifi? The portion of the stream is in the attached image.

1 REPLY 1

Re: Apache Nifi - Reset Counter

Explorer

Hi @Julio Gazeta

please take a look at this code sample using-counters-in-apache-nifi

"

The best way to define and update counters is to use ExecuteScript processor with the following piece of Groovy code:

"

Don't have an account?
Coming from Hortonworks? Activate your account here