Member since
11-16-2015
905
Posts
665
Kudos Received
249
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 442 | 09-30-2025 05:23 AM | |
| 777 | 06-26-2025 01:21 PM | |
| 676 | 06-19-2025 02:48 PM | |
| 863 | 05-30-2025 01:53 PM | |
| 11442 | 02-22-2024 12:38 PM |
03-23-2017
07:50 PM
Check the getPropertyDescriptor() and getPropertyDescriptors() methods from the example in the mailing list (link above). You have to look up the descriptor by name in the former, and return a List of the PropertyDescriptors in the latter.
... View more
03-23-2017
07:48 PM
You can set .required(false) on your password property. Later on when the script would try to use the value (if it is set), you can call context.getProperty(password).isSet() to see if anything has been entered.
... View more
03-23-2017
07:46 PM
That example was written against NiFi 0.x. In NiFi 1.x you can use ComponentLog rather than ProcessorLog.
... View more
03-23-2017
03:53 PM
Can you ssh to the remote machine from the command line?
... View more
03-23-2017
03:46 PM
1 Kudo
As you suggested, you can use the JoltTransformJSON processor to "flatten" your JSON, but if your use case is as simple as the provided example (where the fields are one level down), you could also use EvaluateJsonPath with the target set to flowfile-content and the JSONPath expression set to $.Person
... View more
03-22-2017
06:05 PM
I wonder if the slashy string is causing the problem. Since you don't have any single quotes in your command, maybe try enclosing the command in single quotes rather than slashes.
... View more
03-22-2017
06:03 PM
Do you mind formatting the code in a "code" block? I see two definitions of copyCommand (you probably wanted to remove the one with all your hostname/port user/pass info)
... View more
03-21-2017
08:12 PM
1 Kudo
With the ExecuteScript processor, you are likely just adding Dynamic Properties (also known as User-Defined Properties), which are not sensitive. To add your own sensitive properties to a scripted processor, you would need to use InvokeScriptedProcessor. There's an example from the NiFi mailing list (though not with sensitive properties, you'd just need to add .sensitive(true) to your PropertyDescriptor.Builder, and I have another example (with no added properties) on my blog.
... View more
03-20-2017
02:20 PM
Can you edit your question to include the code you're using to store the value into the state map (and update the StateManager with it)?
... View more
03-17-2017
05:12 PM
You can put sqljdbc42.jar somewhere else and point to it in the Database Driver Location property. There might be issues with backslashes and/or Windows pathnames, I think there are other HCC questions/answers that address this.
... View more