Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

ListenHTTP NiFi Proccessor error with same port differnt path

Highlighted

ListenHTTP NiFi Proccessor error with same port differnt path

New Contributor

I have 2 ListenHttp processor listening on the same port, with two different paths and I get the following error:

Any ideas? why? Im using nifi 0.7.4 @Matt Clarke @Matt Burgess

ListenHTTP[id=ed7a45f5-4c4e-485a-a53d-8178649ec1e0] ListenHTTP[id=ed7a45f5-4c4e-485a-a53d-8178649ec1e0] failed to invoke @OnScheduled method due to java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.; processor will not be scheduled to run for 30000 milliseconds: java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.
1 REPLY 1

Re: ListenHTTP NiFi Proccessor error with same port differnt path

New Contributor

@John T,

You cannot have two different ListenHttp processors listening on the same port. Also, ListenHttp allows only one path. You can use HandleHttpRequest followed by a RouteOnAttribute and use the http.request.url attribute to route to your path.

Don't have an account?
Coming from Hortonworks? Activate your account here