Skip to content

Commit ca399b6

Browse files
[HOTFIX] History Server API docs error fix.
1 parent bfbdab1 commit ca399b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/main/scala/org/apache/spark/status/api/v1/ApiRootResource.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ private[v1] class ApiRootResource extends UIRootFromServletContext {
167167

168168
@Path("applications/{appId}/logs")
169169
def getEventLogs(
170-
@PathParam("appId") appId: String): EventLogDownloadResource = {
170+
@PathParam("appId") appId: String): EventLogDownloadResource = {
171171
new EventLogDownloadResource(uiRoot, appId, None)
172172
}
173173

174174
@Path("applications/{appId}/{attemptId}/logs")
175175
def getEventLogs(
176-
@PathParam("appId") appId: String,
177-
@PathParam("attemptId") attemptId: String): EventLogDownloadResource = {
176+
@PathParam("appId") appId: String,
177+
@PathParam("attemptId") attemptId: String): EventLogDownloadResource = {
178178
new EventLogDownloadResource(uiRoot, appId, Some(attemptId))
179179
}
180180
}

docs/monitoring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ for a running application, at `http://localhost:4040/api/v1`.
233233
<td>Download the event logs for all attempts of the given application as a zip file</td>
234234
</tr>
235235
<tr>
236-
<td><code>/applications/[app-id]/[attempt-id/logs</code></td>
236+
<td><code>/applications/[app-id]/[attempt-id]/logs</code></td>
237237
<td>Download the event logs for the specified attempt of the given application as a zip file</td>
238238
</tr>
239239
</table>

0 commit comments

Comments
 (0)