Member since
12-10-2019
11
Posts
1
Kudos Received
0
Solutions
02-25-2020
10:26 AM
1 Kudo
I was able do it by using bash in the command path and -c;”<MyVeryLongCommandGoesHere>” in the command arguments.
... View more
02-23-2020
10:39 AM
I have a linux command like this which works in a normal terminal.
(head -1 -; diff --unchanged-group-format= --old-line-format= --new-line-format=%L --unidirectional-new-file --speed-large-files recordsYesterday.csv -) < recordsToday.csv
I want to immitate such command in ExecuteStreamCommand. The recordsToday.csv will of course be replaced with the flowfile content.
I tried doing it like this but it does not work.
Any help would be appreciated. Thank you.
... View more
- Tags:
- NiFi
- nifi-processor
Labels:
- Labels:
-
Apache NiFi
02-04-2020
02:24 AM
Because the keys are not within my control, it was provided to me and should be used as is.
... View more
02-02-2020
11:52 PM
I am try to connect to sftp via ssh keys. The problem is that the keys provided to me does not have passphrase and NiFi PutSFTP processor is asking for one. I have tried setting the field to an empty string but NiFi is saying that passphrase field cannot be empty.
Anyone knows a workaround? I really need to use these ssh keys provided to me. I cannot generate new keys with passphrase.
... View more
- Tags:
- apache nifi
- PutSFTP
Labels:
- Labels:
-
Apache NiFi
12-20-2019
02:16 AM
I'm passing a csv flowfile to ExecuteStreamCommand. How can I zip it with password and pass it to the next processor?
I don't know how to zip file from stdin and pass it to stdout. I'm using python
... View more
Labels:
- Labels:
-
Apache NiFi
12-11-2019
08:06 PM
I was able to do it using replaceTextProcessor, I see that JoltTransformJSON is a fancier way to do it. I will give it a try, thanks!
... View more
12-11-2019
06:45 PM
After attributestoJSON which wrote the attributes to file-content, I used replaceText and it worked. thanks for the help!
... View more
12-11-2019
05:30 AM
Output of attributesToJson is:
{"disconnectedNodeAcknowledged":"true","state":"STOPPED","revision":"{\"clientId\":\"f4b30e7b-016e-1000-7c5e-310be411ae67\",\"version\":9}"}
when it should be
{"disconnectedNodeAcknowledged":"true","state":"STOPPED","revision":{"clientId":"f4b30e7b-016e-1000-7c5e-310be411ae67","version":9}}
As you can see the revision property is encoded as string when it should be json.
How can I resolve this?
... View more
- Tags:
- NiFi
Labels:
- Labels:
-
Apache NiFi
12-11-2019
05:26 AM
I have the same problem, any chance you found a solution?
... View more