Skip to content

Commit 5e78b4f

Browse files
committed
fix rendering problems
1 parent 5ae02ad commit 5e78b4f

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

docs/monitoring.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -179,72 +179,72 @@ Note that the history server only displays completed Spark jobs. One way to sign
179179
In addition to viewing the metrics in the UI, they are also available as JSON. This gives developers
180180
an easy way to create new visualizations and monitoring tools for Spark. The JSON is available for
181181
both running applications, an in the history server. The endpoints are mounted at `/json/v1`. Eg.,
182-
for the history server, they would typically be accessible at `http://<server_url>:18080/json/v1`.
182+
for the history server, they would typically be accessible at `http://<server-url>:18080/json/v1`.
183183

184184
<table class="table">
185185
<tr><th>Endpoint</th><th>Meaning</th></tr>
186186
<tr>
187-
<td>`/applications`</td>
187+
<td><code>/applications</code></td>
188188
<td>A list of all applications</td>
189189
</tr>
190190
<tr>
191-
<td>`/applications/<app_id>/jobs`</td>
191+
<td><code>/applications/[app-id]/jobs</code></td>
192192
<td>A list of all jobs for a given application</td>
193193
</tr>
194194
<tr>
195-
<td>`/applications/<app_id>/jobs/<job_id>`</td>
195+
<td><code>/applications/[app-id]/jobs/[job-id]</code></td>
196196
<td>Details for one job</td>
197197
</tr>
198198
<tr>
199-
<td>`/applications/<app_id>/stages`</td>
199+
<td><code>/applications/[app-id]/stages</code></td>
200200
<td>A list of all stages for a given application</td>
201201
</tr>
202202
<tr>
203-
<td>`/applications/<app_id>/stages/<stage_id>`</td>
203+
<td><code>/applications/[app-id]/stages/[stage-id]</code></td>
204204
<td>A list of all attempts for a given stage</td>
205205
</tr>
206206
<tr>
207-
<td>`/applications/<app_id>/stages/<stage_id>/<stage_attempt_id>`</td>
207+
<td><code>/applications/[app-id]/stages/[stage-id]/[stage-attempt-id]</code></td>
208208
<td>Details for the given stage attempt</td>
209209
</tr>
210210
<tr>
211-
<td>`/applications/<app_id>/stages/<stage_id>/<stage_attempt_id>/taskSummary`</td>
211+
<td><code>/applications/[app-id]/stages/[stage-id]/[stage-attempt-id]/taskSummary</code></td>
212212
<td>Summary metrics of all tasks in a stage attempt</td>
213213
</tr>
214214
<tr>
215-
<td>`/applications/<app_id>/stages/<stage_id>/<stage_attempt_id>/taskList`</td>
215+
<td><code>/applications/[app-id]/stages/[stage-id]/[stage-attempt-id]/taskList</code></td>
216216
<td>A list of all tasks for a given stage attempt</td>
217217
</tr>
218218
<tr>
219-
<td>`/applications/<app_id>/executors`</td>
219+
<td><code>/applications/[app-id]/executors</code></td>
220220
<td>A list of all executors for the given application</td>
221221
</tr>
222222
<tr>
223-
<td>`/applications/<app_id>/storage/rdd`</td>
223+
<td><code>/applications/[app-id]/storage/rdd</code></td>
224224
<td>A list of stored RDDs for the given application</td>
225225
</tr>
226226
<tr>
227-
<td>`/applications/<app_id>/storage/rdd/<rdd_id>`</td>
227+
<td><code>/applications/[app-id]/storage/rdd/[rdd-id]</code></td>
228228
<td>Details for the storage status of a given RDD</td>
229229
</tr>
230230
</table>
231231

232-
When running on Yarn, each application has multiple attempts, so `<app_id>` is really a compound key,
233-
with `<app_id>/<attempt_id>`.
232+
When running on Yarn, each application has multiple attempts, so `[app-id]` is actually
233+
`[app-id]/[attempt-id]` in all cases.
234234

235-
These endpoints have been strongly versioned to make it easier to develop applications on top of these
236-
endpoints, without knowledge of spark internal classes. In particular, Spark guarantees:
235+
These endpoints have been strongly versioned to make it easier to develop applications on top.
236+
In particular, Spark guarantees:
237237

238238
* Endpoints will never be removed from one version
239239
* Individual fields will never be removed for any given endpoint
240240
* New endpoints may be added
241241
* New fields may be added to existing endpoints
242-
* New versions of the api may be added in the future, which are free to be completely incompatible with earlier versions
242+
* New versions of the api may be added in the future at a separate endpoint (eg., `json/v2`). New versions are *not* required to be backwards compatible.
243243
* Api versions may be dropped, but only after at least one minor release of existing beside a new api version
244244

245-
Note that even when examining the UI of a running applications, the `applications/<app_id>` portion is
245+
Note that even when examining the UI of a running applications, the `applications/[app-id]` portion is
246246
still required, though there is only one application available. Eg. to see the list of jobs for the
247-
running app, you would go to `http://localhost:4040/json/v1/applications/<app_id>/jobs`. This is to
247+
running app, you would go to `http://localhost:4040/json/v1/applications/[app-id]/jobs`. This is to
248248
keep the paths consistent in both modes.
249249

250250
# Metrics

0 commit comments

Comments
 (0)