Member since
06-14-2023
90
Posts
27
Kudos Received
8
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2677 | 12-29-2023 09:36 AM | |
3380 | 12-28-2023 01:01 PM | |
886 | 12-27-2023 12:14 PM | |
415 | 12-08-2023 12:47 PM | |
1353 | 11-21-2023 10:56 PM |
09-16-2023
01:30 PM
1 Kudo
ReplaceText processor should work.. This RegEx search pattern should do the trick: ^(.*?)\(([^=]*)=([^\)]*)\);$ With this replacement value: $1($2='$3') Don't forget to set the evaluation mode to line-by-line...
... View more
09-16-2023
01:15 PM
As far as I know, NiFi leverage Jython and would currently limit you to using Python 2.7 compatible code and only modules written in pure Python. Home | Jython
... View more
09-16-2023
01:10 PM
This doesn't look like a valid regex pattern \E^modbus_log\.\d{4}-\d{2}-\d{2}_\d{2}-\d{2}$ Maybe it should be ^modbus_log\.\d{4}-\d{2}-\d{2}_\d{2}-\d{2}$
... View more
08-28-2023
07:10 AM
The 2 lines I provided are the very first lines and then all your code comes after.
... View more
07-29-2023
07:56 PM
NiFi is awesome with so many out-of-the-box processors...however, I have found sometimes a very specialized scripted Groovy processor that fetches 1000 or more files at a time to perform significantly faster... especially if your custom processor consolidates several processors into 1.
... View more
07-29-2023
11:16 AM
2 Kudos
You should be able to create a custom scripted processor and define an attribute that's sensitive so once you set it...it won't be visible. You might be able to handle your whole process inside the script so the password never gets written out. I've written several in Groovy. An alternative option is to leverage something like Vault (Vault by HashiCorp (vaultproject.io)). PropertyDescriptor OAUTH_TOKEN = new PropertyDescriptor.Builder() .name("oAuth Token") .displayName("oAuth Token") .description("oAuth Token") .required(true) .sensitive(true) .addValidator(StandardValidators.NON_EMPTY_VALIDATOR) .build()
... View more
07-02-2023
12:15 PM
If you download the Postgres JDBC driver's you can leverage any of the SQL processors to query Postgres directly instead of using pgdump. https://jdbc.postgresql.org/download/
... View more
06-26-2023
06:51 AM
1 Kudo
Use an UpdateAttribute processor to add attributes with your header values. i.e. Content-Type with value of application/json and in the InvokeHTTP you'll notice there's a field called Attributes to Send (or something like this... They will be the headers) and list those Accept|Authorize|Any other (it's regular expression so you might have to escape some characters). FlowFile content should be sent as the body.
... View more
06-25-2023
12:23 PM
Have you tried these examples? https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-1/ta-p/248922
... View more
06-25-2023
12:21 PM
Apache PDFBox is supposed to allow you to merge PDF content. Since this is a Java library you can create a scripted Groovy processor to merge the files for you. https://pdfbox.apache.org https://javadoc.io/doc/org.apache.pdfbox/pdfbox/2.0.27/index.html
... View more