Support Questions

Find answers, ask questions, and share your expertise

Hue Load-balacing File access error

avatar
Rising Star

Hi.

 

I setup Hue load-balancing following instructions on 

http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_hag_hue_config....

 

So i have nginx running and everything seems working fine.

However when I open a file from File Browswer (http://hueserver:8888/filebrowser/view/filepath)

the page gets redirected to http://hue/filebrowswer/view/filepath, and shows page not found error

 

i think the unexpected "hue" hostname comes from the upstream name on nginx configuration.

 

Anyone has any idea how to fix this?

 

Thanks 

Ben

1 ACCEPTED SOLUTION

avatar
Rising Star

got it fixed by adding

 

 

proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;

 

 

to location /{ }

 

other workaround is to upgrade to cloudera 5.5 (hue 3.9)

View solution in original post

2 REPLIES 2

avatar
Rising Star

got it fixed by adding

 

 

proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $remote_addr;

 

 

to location /{ }

 

other workaround is to upgrade to cloudera 5.5 (hue 3.9)

avatar
Community Manager

Thank you for sharing the solution ben123. 🙂


Cy Jervis, Manager, Community Program
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.