502 Proxy Error while accessing Hue from the Load Balancer

If you are accessing Hue from the Hue Load Balancer and encounter the "502 Proxy Error Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request POST /desktop/api/search/entities.", then increase the proxy timeout value for the Hue Load Balancer using Cloudera Manager.

  1. Log into Cloudera Manager as an Administrator.
  2. Go to Clusters > $Hue service > Configuration > Scope > Load Balancer > Load Balancer Advanced Configuration Snippet (Safety Valve) for httpd.conf.
  3. Add the following line in the Load Balancer Advanced Configuration Snippet (Safety Valve) for httpd.conf text box:
    ProxyTimeout 600
  4. Click Save Changes.
  5. Restart the Hue service.