Fixing a warning related to accessing non-optimized Hue

Condition

You see the following messgae when you open Hue: You are accessing a non-optimized Hue, please switch to one of the available addresses.

Cause

This message is displayed when you have a Load Balancer role, but none of the Hue instances are linked to it.

Solution

  1. Log in to Cloudera Manager as an Administrator.
  2. Go to Clusters > Hue > Configuration.
    If you are using an external load balancer, then you must add the list of the load balancers under the [desktop] section in the Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini field as follows:
    [desktop]
    hue_load_balancer=[***LOAD-BALANCER-HOST-1***],[***LOAD-BALANCER-HOST-2***]
  3. Click Save Changes.
  4. Restart the Hue service.