rename Slaves --> Executor
This commit is contained in:
parent
b92259ba57
commit
c1df24d085
|
@ -468,7 +468,7 @@ class SparkContext(
|
|||
* Return a map from the slave to the max memory available for caching and the remaining
|
||||
* memory available for caching.
|
||||
*/
|
||||
def getSlavesMemoryStatus: Map[String, (Long, Long)] = {
|
||||
def getExecutorMemoryStatus: Map[String, (Long, Long)] = {
|
||||
env.blockManager.master.getMemoryStatus.map { case(blockManagerId, mem) =>
|
||||
(blockManagerId.ip + ":" + blockManagerId.port, mem)
|
||||
}
|
||||
|
@ -479,13 +479,13 @@ class SparkContext(
|
|||
* they take, etc.
|
||||
*/
|
||||
def getRDDStorageInfo : Array[RDDInfo] = {
|
||||
StorageUtils.rddInfoFromStorageStatus(getSlavesStorageStatus, this)
|
||||
StorageUtils.rddInfoFromStorageStatus(getExecutorStorageStatus, this)
|
||||
}
|
||||
|
||||
/**
|
||||
* Return information about blocks stored in all of the slaves
|
||||
*/
|
||||
def getSlavesStorageStatus : Array[StorageStatus] = {
|
||||
def getExecutorStorageStatus : Array[StorageStatus] = {
|
||||
env.blockManager.master.getStorageStatus
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ class BlockManagerUI(val actorSystem: ActorSystem, blockManagerMaster: ActorRef,
|
|||
path("") {
|
||||
completeWith {
|
||||
// Request the current storage status from the Master
|
||||
val storageStatusList = sc.getSlavesStorageStatus
|
||||
val storageStatusList = sc.getExecutorStorageStatus
|
||||
// Calculate macro-level statistics
|
||||
val maxMem = storageStatusList.map(_.maxMem).reduce(_+_)
|
||||
val remainingMem = storageStatusList.map(_.memRemaining).reduce(_+_)
|
||||
|
@ -60,7 +60,7 @@ class BlockManagerUI(val actorSystem: ActorSystem, blockManagerMaster: ActorRef,
|
|||
parameter("id") { id =>
|
||||
completeWith {
|
||||
val prefix = "rdd_" + id.toString
|
||||
val storageStatusList = sc.getSlavesStorageStatus
|
||||
val storageStatusList = sc.getExecutorStorageStatus
|
||||
val filteredStorageStatusList = StorageUtils.
|
||||
filterStorageStatusByPrefix(storageStatusList, prefix)
|
||||
val rddInfo = StorageUtils.rddInfoFromStorageStatus(filteredStorageStatusList, sc).head
|
||||
|
|
Loading…
Reference in a new issue