如何在Web UI中更改作业/阶段描述? [英] How to change job/stage description in web UI?
问题描述
当我在Apache Spark上运行作业时,Web UI会提供类似于以下的视图:
When I run a job on Apache Spark, the web UI gives a view similar to this:
虽然这对我作为开发人员了解事物的位置非常有用,但我认为阶段描述中的行号对我的支持团队没有太大用处.为了使他们的工作更轻松,我希望能够为我的工作的每个阶段以及工作本身提供一个定制的名称,如下所示:
While this is incredibly useful for me as a developer to see where things are, I think the line numbers in the stage description would be not quite as useful for my support team. To make their job easier, I would like to have the ability to provide a bespoke name for each stage of my job, as well as for the job itself, like so:
这可以在Spark中完成吗?如果是这样,我该怎么办?
Is this something that can be done in Spark? If so, how would I do so?
推荐答案
这是Spark Core非常罕见的功能之一,称为本地属性.
That's where one of the very uncommon features of Spark Core called local properties applies so well.
Spark SQL使用它在单个结构化查询下将不同的Spark作业分组,因此您可以使用SQL选项卡并轻松导航.
Spark SQL uses it to group different Spark jobs under a single structured query so you can use SQL tab and navigate easily.