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?

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.