Skip to content
Snippets Groups Projects
Commit ecfbaf24 authored by BlackNiuza's avatar BlackNiuza Committed by shiyun.wxm
Browse files

rename "a" to "statusId"

parent b60839e5
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ private[spark] class ExecutorsUI(val sc: SparkContext) {
</tr>
}
val execInfo = for (b <- 0 until storageStatusList.size) yield getExecInfo(b)
val execInfo = for (statusId <- 0 until storageStatusList.size) yield getExecInfo(statusId)
val execTable = UIUtils.listingTable(execHead, execRow, execInfo)
val content =
......@@ -99,8 +99,8 @@ private[spark] class ExecutorsUI(val sc: SparkContext) {
UIUtils.headerSparkPage(content, sc, "Executors (" + execInfo.size + ")", Executors)
}
def getExecInfo(a: Int): Seq[String] = {
val status = sc.getExecutorStorageStatus(a)
def getExecInfo(statusId: Int): Seq[String] = {
val status = sc.getExecutorStorageStatus(statusId)
val execId = status.blockManagerId.executorId
val hostPort = status.blockManagerId.hostPort
val rddBlocks = status.blocks.size.toString
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment