Member since
10-16-2020
3
Posts
0
Kudos Received
0
Solutions
03-11-2022
04:08 AM
hi, this isn't working as it is on nifi 1.14, can you give me a hand please? i used a "generateFlowfile" with some random text, and connected to executeScript but get the following: ExecuteScript[id=78c5739f-017f-1000-0000-0000016ca301] ExecuteScript[id=78c5739f-017f-1000-0000-0000016ca301] failed to process due to javax.script.ScriptException: java.lang.NullPointerException: java.lang.NullPointerException in <script> at line number 25; rolling back session: java.lang.NullPointerException ↳ causes: Traceback (most recent call last): File "<script>", line 25, in <module> java.lang.NullPointerException java.lang.NullPointerException: java.lang.NullPointerException ↳ causes: javax.script.ScriptException: java.lang.NullPointerException: java.lang.NullPointerException in <script> at line number 25 ↳ causes: org.apache.nifi.processor.exception.ProcessException: javax.script.ScriptException: java.lang.NullPointerException: java.lang.NullPointerException in <script> at line number 25
... View more
10-19-2020
08:39 AM
could this be a bug in that nifi cant process the * character in a property?
... View more
10-16-2020
06:57 AM
Hi, im having trouble running an execute script with an * in a property. First of all i need to run a script to move files between folders, because the putfile processor creates a hidden file before moving it to the final filename, this is a requierement for me since everything i put in the destination directory gets picked-upped by another program that has no filename filter. Problem: running ExecuteProcess version 1.11.4 with the following config gives erros. Command: /bin/mv Command Arguments: /tmp/test/* /temp/test2/ The following error seems to be that im not escaping the * character. Im using the * because that moves all the files omitting the hidden ones. 2020-10-16 11:05:20,857 WARN [ExecuteProcess 017411cc-ca25-1489-15c6-f3edfccdf984 Task] o.a.n.processors.standard.ExecuteProcess ExecuteProcess[id=017411cc-ca25-1489-15c6-f3edfccdf984] /bin/mv: cannot stat '/tmp/test/*': No such file or directory Solution for now is running a bash script with the contents "mv $1 $2"
... View more
Labels:
- Labels:
-
Apache NiFi