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

Consolidate various stageIdTo* hash maps

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • Web UI
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: