-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-15951] Change Executors Page to use datatables to support sorting columns and searching #13670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-15951] Change Executors Page to use datatables to support sorting columns and searching #13670
Changes from 1 commit
f66f2ea
8df49af
c0e2afa
3b4962a
c73e905
2453e21
55419aa
fc3dbd7
3454193
5cf514d
31c369a
eb96c5d
43e4a87
fe12d59
286d6d8
faf814f
abf68c7
bc132b1
66df19f
e81d45b
87301c1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| * (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| package org.apache.spark.status.api.v1 | ||
|
|
||
| import javax.ws.rs.{GET, PathParam, Produces} | ||
| import javax.ws.rs.core.MediaType | ||
|
|
||
| import org.apache.spark.ui.SparkUI | ||
| import org.apache.spark.ui.exec.ExecutorsPage | ||
|
|
||
| @Produces(Array(MediaType.APPLICATION_JSON)) | ||
| private[v1] class AllExecutorListResource(ui: SparkUI) { | ||
|
|
||
| @GET | ||
| def executorList(): Seq[ExecutorSummary] = { | ||
| val listener = ui.executorsListener | ||
| listener.synchronized { | ||
| // The follow codes should be protected by `listener` to make sure no executors will be | ||
| // removed before we query their status. See SPARK-12784. | ||
| val storageStatusList = listener.activeStorageStatusList | ||
|
||
| val deadStorageStatusList = listener.deadStorageStatusList | ||
| (0 until storageStatusList.size).map { statusId => | ||
| ExecutorsPage.getExecInfo(listener, statusId, isActive = true) | ||
| } ++ (0 until deadStorageStatusList.size).map { statusId => | ||
| ExecutorsPage.getExecInfo(listener, statusId, isActive = false) | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -288,7 +288,11 @@ where `[base-app-id]` is the YARN application ID. | |
| </tr> | ||
| <tr> | ||
| <td><code>/applications/[app-id]/executors</code></td> | ||
| <td>A list of all executors for the given application.</td> | ||
| <td>A list of all active executors for the given application.</td> | ||
| </tr> | ||
| <tr> | ||
| <td><code>/applications/[app-id]/executors</code></td> | ||
|
||
| <td>A list of all(active/dead) executors for the given application.</td> | ||
|
||
| </tr> | ||
| <tr> | ||
| <td><code>/applications/[app-id]/storage/rdd</code></td> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PathParam doesn't appear to be used