Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Apache Nifi - Reset Counter
Labels:
- Labels:
-
Apache NiFi
Explorer
Created on ‎12-26-2018 03:40 AM - edited ‎08-17-2019 03:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Contributor
Created ‎12-31-2018 08:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
"
