Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spark UI appears with wrong format (broken CSS)

I am using Apache Spark for the first time. I run my application and when I access localhost:4040 I get what is shown in the picture. I found that maybe setting

spark.ui.enabled true 

could help but I don't know how to do that.

UI view

Thanks in advance.

like image 991
mpifteki Avatar asked Oct 17 '22 01:10

mpifteki


1 Answers

I have faced the same issue while using Spark on Google Cloud Dataproc.

If you will access Spark Job UI not through 4040 port directly, but through YARN Web UI (8088 port) you will see correctly rendered web pages.

To workaround this issue when accessing Spark UI directly through 4040 port you need to reset spark.ui.proxyBase property inside your Spark job (not in CLI/job submission command), because it gets overridden by Spark UI proxy:

sys.props.update("spark.ui.proxyBase", "")

Here is detailed description of this issue.

like image 68
Igor Dvorzhak Avatar answered Nov 03 '22 22:11

Igor Dvorzhak