Samuel Miller
Samuel Miller

Reputation: 23

Nifi 1.5.0 Cluster configuration

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!

(I'm using a 3 host setup in AWS, the hosts will individually respond if I set the nifi.web.http.host to their private IP and I access it at http://[ip]/nifi/ but not if I use a loadbalancer in front of the cluster).

Upvotes: 0

Views: 615

Answers (1)

Bryan Bende
Bryan Bende

Reputation: 18630

It is not really an issue of clustering NiFi, it is an issue of accessing it through a load balancer. A cluster does not imply a load balancer.

In the next version of NiFi there will be a new property (nifi.web.proxy.host) where you could put dataflow.mydomain.com and it would let it through.

For now I think you'd have to strip off the host header of each request at your load balancer so that it doesn't get passed on to the NiFi nodes, that it was is triggering the rejection. NiFi is inspecting the headers of the incoming request and seeing that the host header has a value that is not the host of NiFi.

Upvotes: 2

Related Questions