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.

Is there a way to override the hostname property of the ListenHTTP processor?

Is there a way to override the hostname property of the ListenHTTP processor?

New Contributor

I have set up a ListenHTTP processor. Quite straightforward.

The issue is that the "exposed" URL includes the hostname (which in our case is not a publicly available web address). Would it be the chance to override the "hostname" in the processor with the IP address of the VM?

THX in advance.

Regards,

Massimiliano

5 REPLIES 5

Re: Is there a way to override the hostname property of the ListenHTTP processor?

ListenHTTP is a legacy processor. Instead, take a look at https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.HandleHttpRequ... . Make sure to read through Additional Details section to see how to build a complete request/response loop.

Re: Is there a way to override the hostname property of the ListenHTTP processor?

ListenHTTP probably should not be looked at as a legacy processor. It is good for the narrow scope it was built for which also happens to be a common case. For example when paired with PostHTTP it works great.

Re: Is there a way to override the hostname property of the ListenHTTP processor?

Hello. Can you show an example configuration that you have and describe further what you mean by exposed URL further. Perhaps a log entry or screenshot to illustrate what you're seeing would help us provide more specific advice.

thanks

Highlighted

Re: Is there a way to override the hostname property of the ListenHTTP processor?

New Contributor

I have set up a minimum cluster with two NIFI instances. I have instanced a ListenHTTP processor and configured it to listen on port 29999. I have opened port 29999 on both the VMs where the NIFI instances are running on.

Now it works but I can only call the cluster node web server set up by the processor.

E.G.

http://(master-node-ip):29999/contentListener is not listening

http://(cluster-node-ip):29999/contentListener is listening

Hope I have clarified.

THX.

CIAO

Re: Is there a way to override the hostname property of the ListenHTTP processor?

Not sure it answers your question but you can specify that a processor must run on the primary node.