Skip to content

Commit 3ad3db4

Browse files
committed
Add context termination for History server on Yarn
The history server on Yarn only shows completed jobs. This adds a note concerning the needed explicit context termination at the end of a spark job which is a best practice anyway. Related to SPARK-2972 and SPARK-3458
1 parent 275b1be commit 3ad3db4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/monitoring.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ follows:
150150
Note that in all of these UIs, the tables are sortable by clicking their headers,
151151
making it easy to identify slow tasks, data skew, etc.
152152

153+
In Yarn, note that the history server only displays completed Spark jobs. One way to signal the completion of a Spark job is to stop the Spark Context explicitly (`sc.stop()`), or in Python using the `with SparkContext() as sc:` to handle the Spark Context setup and tear down, and still show the job history on the UI.
154+
153155
# Metrics
154156

155157
Spark has a configurable metrics system based on the

0 commit comments

Comments
 (0)