Member since
09-27-2018
138
Posts
23
Kudos Received
10
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
9743 | 02-28-2021 10:23 PM | |
1941 | 02-08-2021 11:53 PM | |
31781 | 12-16-2020 11:31 PM | |
7611 | 12-14-2020 11:02 PM | |
4844 | 12-14-2020 12:18 AM |
01-11-2019
01:58 PM
@Shu Great description and thanks for the example. It works just the way I need!
... View more
11-29-2018
02:20 PM
Hi @Artjom Zab ! So a fundamental difference in error handling is whether the flowfiles have to processed again after error correction or not. OK but beside of this aspect one has always
to find the appropriate error information depending on where the error occurs. My aim is still to have a centralized processgroup for uniform error-handling which should log
the information to a DB-table to point the support into right direction like the cutout of my flow shows. So I have to verify where a flowfile comes from. IMHO there are three different situations: 1. Processors like InvokeHTTP which deliver suitable information about an error as flowfile attribute OK possible to handle. 2. Processors which send the flowfile to failure-queue WITHOUT setting flowfile attributes or creating entries in bulletin-board, e.g. SplitJson, JoltTransformJSON I don't believe that it is wise to set an UpdateAttribute-processor after every failure-queue and hardcode the component information to attributes.
If I look at the data provenance I see componentID and componentName in the details but I don't see them at flowfile in failure-queue. Why...? 3. Processors which generate an entry in bulletin-board, e.g. InvokeHTTP on time-out, ExecuteSQL on time-out, and sending the flowfile to failure-queue Thanks for the link for configurate "REPORTING TASKS". Tested it on my local installation (no permission on the customer DEV-System). But at the moment I don't see how to bed it in my flows.
I think this would be a parallel action to monitor this and not being part of my flows. If I would always know the componentID I assume I could handle ALL these cases with the REST-API (e.g. http://127.0.0.1:8080/nifi-api/processors/{id} or http://127.0.0.1:8080/nifi-api/flow/bulletin-board )
checking the concrete component or check bulletin-board for messages on this component. Maybe my idea is absurd - I am sure hundreds of you solved this problem already. Any kind of help is very welcome! Using NiFi 1.6.0
... View more
11-27-2018
07:53 AM
Hi @Artjom Zab I'm facing the same issue and followed the same links as you. Because I'm quite new to NiFi my opinion might not be relevant but here are my thoughts on errorhandling. Similar to your description I have built a processgroup where I handle the logic of retry for 3 times. Because the output port has to be tied to the original processor I don't see any other solution then connecting this processgroup to every retrieable action/processor. Because on my installation is the NiFi-Registry available I built the processgroup one time and import it on every place from the registry. But if there will be changes one day on this processgroup there is a lot of work to do exchanging the version of this very frequently used processgroup. BTW: In my first concrete case there is no worry about data loss relating to flowfiles which failed (with or without retry) because after informing the administrator about the details of the problematic data and his solution of the problem there always have to be requested actual data from the source systems for rerun. Would be glad getting some tips for a better solution. Bye!
... View more
11-21-2018
08:50 AM
2 Kudos
Hi, I have a processgroup which acts as a subroutine for many other processgroups.
I started version control and imported this version into the other processgroups.
Now I made changes which lead to a new version which should be substituted in all other processgroups. Found in "NiFi Summary" -> "PROCESS GROUPS" the possibility to find all affected processgroups. The question is: Is there an other possibility for substitution except going from here to every single processgroup for "Change version"? Using NiFi 1.6.0 Thanks for any help!
... View more
Labels:
- Labels:
-
Apache NiFi
11-20-2018
06:54 AM
@Shu Thanks for Your answer! Using NiFi 1.6.0 --- must have been blind - indeed I haven't seen this search option, sorry. Bye!
... View more
11-19-2018
12:18 PM
Hi, my question is about the option "View data provenance" in the context menu. Is there a possibility to show the FlowFile name as extra column (maybe by configuration) analog the display when I choose "List queue"? Searching for a concrete FlowFile while testing would be much easier if I haven't got to click "i" numerous times until I find the right one.
... View more
Labels:
- Labels:
-
Apache NiFi
11-16-2018
07:13 AM
@Matt Burgess Superb, it works perfect! One day I will try your original solution, sounds interesting. Bye!
... View more
11-15-2018
07:05 AM
@Matt Burgess Great, my boss and I are very grateful for your "very specific" help! One last question concerning the script: The perfect solution would leave the FF-content unchanged and deliver the maxOutput as FF-Attribute. Tried this but can't find the right syntax: flowFile = session.putAttribute(flowFile, 'MAX_geaendertAm_ABAS', ${max.geandertAm_ABAS}) Is this possible?
... View more
11-14-2018
03:09 PM
@Matt Burgess Thanks for your quick response!
Sorry, but I'm afraid I'm unable to cope with your answer.
Knowing NiFi only for a few weeks, knowing nothing about the configuration of the Controller Services for JsonPathReader/JsonRecordSetWriter and need to solve the described problem. I was hoping on some script solution like... flowFile = session.get()
if(!flowFile) return
flowFile = session.putAttribute(flowFile, 'Value_Groovy', (FF_content.geaendertAm_ABAS.max()))
session.transfer(flowFile, REL_SUCCESS) ... where FF_content is an attribute which contains the json. No solution for "beginners" possible?
... View more
11-14-2018
01:43 PM
Hi, as far I have investigated it is not possible in EvaluateJsonPath to get the maximum value of an element of an array. Searched for something like shown in the picture. Now I'm searching for a solution with ExecuteScript like mentioned here: https://community.hortonworks.com/questions/57755/apache-nifi-how-to-calculate-sum-or-average-of-val.html Because Im not familiar with the script languages are offered I'm looking for an example to do this. Found this: https://community.hortonworks.com/articles/75032/executescript-cookbook-part-1.html But I don't find how to get the max value. Any help is very appreciated, thanks!
... View more
Labels:
- Labels:
-
Apache NiFi
- « Previous
- Next »