Spark UI的格式错误(CSS损坏) [英] Spark UI appears with wrong format (broken CSS)

查看:147
本文介绍了Spark UI的格式错误(CSS损坏)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我第一次使用Apache Spark.我运行我的应用程序,当我访问localhost:4040时,我得到了如图所示的内容. 我发现可能设置

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.

谢谢.

推荐答案

我在Google Cloud Dataproc上使用Spark时遇到了同样的问题.

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

如果您不是直接通过4040端口而是通过YARN Web UI(8088端口)访问Spark Job UI,您将看到正确呈现的网页.

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.

要解决此问题,直接通过4040端口直接访问Spark UI时,您需要重置Spark作业内的spark.ui.proxyBase属性(不在CLI/job提交命令中),因为它会被Spark UI代理覆盖:

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", "")

这是此问题的详细说明.

这篇关于Spark UI的格式错误(CSS损坏)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆