1

I have Nifi and Nifi Registry deployed via Docker. I'm trying to integrate ScriptEventHookProvider. https://nifi.apache.org/docs/nifi-registry-docs/html/administration-guide.html#scripteventhookprovider

Here is my providers.xml:

enter image description here

Referenced script file notify.sh exists and is placed inside of the registry container:

enter image description here

I tried relative and absolute paths, but nothing helps me - I get the error:

java.io.IOException: Cannot run program "/opt/nifi-registry/nifi-registry-current/registry_hooks/notify.sh": error=2, No such file or directory

enter image description here

So my question is, how to set script path and working directory correctly? Why do we need both of them?

Sleepy Panda
  • 458
  • 3
  • 9

1 Answers1

2

Problem was in .sh file: it requires LF endings. I had CRLF. So I converted line endings using VS code, and now everything works fine.

enter image description here

Sleepy Panda
  • 458
  • 3
  • 9