It should be really simple to setup..

Check this Hue + NGINX setup page
http://gethue.com/using-nginx-to-speed-up-hue-3-8-0/

In that config file change
1)
> server_name NGINX_HOSTNAME;
to "Machine A, with a public IP"
2)
> server HUE_HOST1:8888 max_fails=3;
> server HUE_HOST2:8888 max_fails=3;
to "Machine B, where Spark is installed"
3)
You may want to adjust "location /static/" that fits your Spark Web UI..
4)
With a few more config lines you can setup SSL offloading too.



-- 
Ruslan Dautkhanov

On Thu, Sep 17, 2015 at 3:06 AM, Renato Perini <[email protected]>
wrote:

> Hello!
> I'm trying to set up a reverse proxy (using nginx) for the Spark Web UI.
> I have 2 machines:
>    1) Machine A, with a public IP. This machine will be used to access
> Spark Web UI on the Machine B through its private IP address.
>    2) Machine B, where Spark is installed (standalone master cluster, 1
> worker node and the history server) not accessible from the outside.
>
> Basically I want to access the Spark Web UI through my Machine A using the
> URL:
> http://machine_A_ip_address/spark
>
> Any advised setup for Spark Web UI + nginx?
>
> Thank you.
>
>
>

Reply via email to