How to add custom description to Spark Job for displaying in Spark Web UI

后端 未结 2 532
逝去的感伤
逝去的感伤 2020-12-28 16:23

When we submit application to Spark, and after performing any operation Spark Web UI displays Job and Stages like count at MyJob.scala:15. But in my application

相关标签:
2条回答
  • 2020-12-28 16:43

    Note that new Zeppelin 0.8 loose his tracking hook if you change the JobGroup name, and can't display his job progress bar (job still working, no effect on the job itself)

    You can use

    sc.setLocalProperty("callSite.short","my job description")
    sc.setLocalProperty("callSite.long","my job details long description")
    

    instead

    See How to change job/stage description in web UI? for some screen captures and scala syntax

    0 讨论(0)
  • 2020-12-28 16:55

    use the sc.setJobGroup:

    Examples:
    python:

    In [28]: sc.setJobGroup("my job group id", "job description goes here")
    In [29]: lines = sc.parallelize([1,2,3,4])
    In [30]: lines.count()
    Out[30]: 4
    

    Scala:

    scala> sc.setJobGroup("my job group id", "job description goes here")
    scala> val lines = sc.parallelize(List(1,2,3,4))
    scala> lines.count()
    res3: Long = 4
    

    SparkUI:

    I hope this is what you are looking for.

    0 讨论(0)
提交回复
热议问题