Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-2299

Consolidate various stageIdTo* hash maps

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: Web UI
    • Labels:
      None
    • Target Version/s:

      Description

      In JobProgressListener:

        val stageIdToTime = HashMap[Int, Long]()
        val stageIdToShuffleRead = HashMap[Int, Long]()
        val stageIdToShuffleWrite = HashMap[Int, Long]()
        val stageIdToMemoryBytesSpilled = HashMap[Int, Long]()
        val stageIdToDiskBytesSpilled = HashMap[Int, Long]()
        val stageIdToTasksActive = HashMap[Int, HashMap[Long, TaskInfo]]()
        val stageIdToTasksComplete = HashMap[Int, Int]()
        val stageIdToTasksFailed = HashMap[Int, Int]()
        val stageIdToTaskData = HashMap[Int, HashMap[Long, TaskUIData]]()
        val stageIdToExecutorSummaries = HashMap[Int, HashMap[String, ExecutorSummary]]()
        val stageIdToPool = HashMap[Int, String]()
        val stageIdToDescription = HashMap[Int, String]()
      

      We should consolidate them to reduce memory & be less error prone.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rxin Reynold Xin
                Reporter:
                rxin Reynold Xin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: