Configurations required to use load balancer with Kerberos enabled
Learn how to use load balancer in front of Schema Registry instances in an environment where Kerberos is enabled.
In this case, the clients connect to the load balancer, so they acquire a Kerberos ticket including the load balancer host. In the meantime, Schema Registry instances are logged in with their service principal including their FQDN. Because the load balancer host and the FQDN are probably not the same (if it is assumed that load balancer is not deployed to Schema Registry host), requests result in ticket mismatch to avoid man-in-the-middle attacks.
To ensure that requests forwarded by a load balancer are accepted, you need to do the following:
- Log into Cloudera Manager and go to the Schema Registry service.
schema_registry_load_balancer_hostto the host of the load balancer.
- Restart the Schema Registry service.
This generates a new principal
Each Schema Registry instance not only logs in with its FQDN related service principal, but also
logs in with the load balancer related one, so forwarded requests do not fail.