Configuring Hue to handle HS2 failover

Hue can handle HiveServer2 (HS2) failovers using ZooKeeper without the need to set up a load balancer.

  1. Log in to Cloudera Manager as an Administrator.
  2. Go to Clusters > Hue > Configuration and add the following lines in the Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini field:
    [beeswax]
    hive_discovery_hs2=true
    hive_discovery_hiveserver2_znode=/hiveserver2
  3. Click Save Changes.
  4. Restart the Hue service.