Member since
09-27-2018
138
Posts
23
Kudos Received
10
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
9456 | 02-28-2021 10:23 PM | |
1892 | 02-08-2021 11:53 PM | |
31183 | 12-16-2020 11:31 PM | |
7444 | 12-14-2020 11:02 PM | |
4753 | 12-14-2020 12:18 AM |
10-05-2020
12:10 AM
@PVVK OK, it covers possible alternative cases. Got it! Thanks for this explanation.
... View more
10-02-2020
02:11 AM
@PVVK Great solution! I was sure it has to be possible but couldn't find out how... Just for my understanding: First all attributes name starting with error_field getting joined and then you replace the value 'Valid' with space and removing this by the last replaceAll. But what is the meaning of | here: replaceAll('Valid|;',' ') Without | the result is 123;;567;45 but why not 123;;567;;45 Thanks in advance for reply.
... View more
09-21-2020
12:39 AM
@PVVK It works perfect! Thank you very much.
... View more
09-21-2020
12:15 AM
@PVVK In the meantime the problem was solved on an other way. But thank you for the script I will test it and I can learn a lot of it!
... View more
09-02-2020
11:34 PM
Hi all, I want to build a flow which brings up information about all versioned processgroup on this system. What I need is: - name of each processgroup - version of each processgroup - timestamp when this version was brought to this system Now I tested with NiFi-REST-API but I can not find the right request to do this. Could someone help me to get this works? Thanks.
... View more
Labels:
- Labels:
-
Apache NiFi
08-31-2020
11:42 PM
@Nidutt Sorry, I can't give you a perfect solution but maybe a hint to find one. Just do GenerateFlowFile and set your attributes like in your example. Then take UpdateAttribute and play around with Expression Language possibilities like "anyMatchingAttribute" or "allMatchingAttribute" maybe in combination with "join". Have a look in the documentation here https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#multi
... View more
02-24-2020
11:20 PM
1 Kudo
@stevenmatison For the sake of completeness and to confirm your suspicions: With NiFi 1.11.1 parameters also work in the PutEmail-Processor.
... View more
02-24-2020
07:01 AM
@MattWho Just for information. This originally described phenomen is solved in the combination NiFi 1.11.1 and NiFi-Registry 0.5.0. A versioncontrolled process-group which contains disabled processors isn't marked anymore with containing "uncommitted changes" after restart of NiFi. Only thing that struck me but isn't a problem: If I disable a versioncontrolled process-group this doesn't lead to marking the process group as having "uncommited changes". But after restart of NiFi this process group is marked as having "uncommited changes". The option "Show local changes" names the differences as "Processor was disabled" for all components within the process group.Now I can proceed a commit and everything stays fine after restart of NiFi.
... View more
02-18-2020
09:50 AM
@Slade First of all I think there is a { missing at the begin of your JSON. You can try here for example: http://jsonpath.herokuapp.com/ Basically it works with $.outputs..name
... View more
02-13-2020
12:38 AM
Hi all! What I get: JSON with an arbitrary number of entries beneath "table". {
"head": {
"dnr": "122"
},
"table": [
{
"zn": 1,
"datum": "20200211", <=== yyyyMMdd CET
"uhrzvon": "10:40" <=== HH:mm CET
},
{
"zn": 2,
"datum": "20200211",
"uhrzvon": "10:47"
},
{
"zn": 3,
"datum": "20200212",
"uhrzvon": "08:11"
}
]
} What I need: Each entry contains "datum" and "uhrzvon" (CET) which I need to join and convert to timestamp (UTC). Because of a later JOLT-Transformation, I thought I can change the original entry of "datum" to use this in JOLT. {
"head": {
"dnr": "122"
},
"table": [
{
"zn": 1,
"datum": "2020-02-11 09:40:00.000", <=== yyyy-MM-dd HH:mm:ss.SSS UTC
"uhrzvon": "10:40"
},
{
"zn": 2,
"datum": "2020-02-11 09:47:00.000",
"uhrzvon": "10:47"
},
{
"zn": 3,
"datum": "2020-02-12 07:11:00.000",
"uhrzvon": "08:11"
}
]
} What I tried: RecordProcessing without schema I can format the date, but not the time (either it stays empty or the value ist wron). And I can't finde a way to bring this two values together. UpdateRecord brings this result {
"head": {
"dnr": "122"
},
"table": [
{
"zn": 1,
"datum" : "2020-02-11 00:00:00.000",
"uhrzvon" : "04:51:40.000", complete wrong
}, ExtractText for whole JSON-Content to an attribute and tried to work with new possibilities for JSON of expression language With jsonPathPut I can't add key/value to the needed path ($.table). It only works on top level. UpdateAttribute JOLT I didn't find a way to join and convert these two information here. Groovy-Script I have no clue of it. I saw some discussion around this but can't find a fitting example. Any help is very wellcome. NiFi 1.11.1
... View more
Labels:
- Labels:
-
Apache NiFi