You need to give the host where the NiFi instance is running in nifi.web.http.host. For ex, say you are clustering NiFi in three nodes: 10.8.18.41, 10.8.18.42, 10.8.18.43. The nifi.properties in the respective nodes should have the node's hostname or IP for nifi.web.http.host. You need to configure the loadbalancer saying the there are three nodes and mention their IP and host. NiFi instance shouldn't be configured with the VIP. And when you hit the VIP i.e. dataflow.mydomain.com, it will bring any of the NiFi instance's UI. The idea of load-balancing is to actually balance the load/traffic sent to the NiFi instances.
On Sat, Feb 10, 2018 at 10:51 PM, Samuel Miller <[email protected]> wrote: > Does anyone know how to cluster NiFi 1.5.0? I want to use > dataflow.mydomain.com but... I get this error when I try to hit the > loadbalancer that reads: > "The request contained an invalid host header [dataflow.mydomain.com] in > the request [/nifi/]. Check for request manipulation or third-party > intercept." > > According to one post that I read, the problem was that the value of > nifi.web.http.host had to match the value of the url. > > If that's true, I don't understand how a cluster would be possible. > > Thanks! > > -Sam >
