Skip to content

Commit

Permalink
[SPARK-2320] Reduce <pre> block font size.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Jun 29, 2014
1 parent 3c104c7 commit 63256f5
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 35 deletions.
4 changes: 4 additions & 0 deletions core/src/main/resources/org/apache/spark/ui/static/webui.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ span.expand-details {
float: right;
}

pre {
font-size: 0.8em;
}

.stage-details {
max-height: 100px;
overflow-y: auto;
Expand Down
35 changes: 0 additions & 35 deletions core/src/main/scala/org/apache/spark/ui/jobs/ExecutorSummary.scala

This file was deleted.

59 changes: 59 additions & 0 deletions core/src/main/scala/org/apache/spark/ui/jobs/UIData.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* 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.ui.jobs

import org.apache.spark.executor.TaskMetrics
import org.apache.spark.scheduler.TaskInfo

import scala.collection.mutable.HashMap

private[jobs] object UIData {

class ExecutorSummary {
var taskTime : Long = 0
var failedTasks : Int = 0
var succeededTasks : Int = 0
var shuffleRead : Long = 0
var shuffleWrite : Long = 0
var memoryBytesSpilled : Long = 0
var diskBytesSpilled : Long = 0
}

class StageData {
var executorRunTime: Long = _
var shuffleReadBytes: Long = _
var shuffleWriteBytes: Long = _
var memoryBytesSpilled: Long = _
var diskBytesSpilled: Long = _

var numActiveTasks: Int = _
var numCompleteTasks: Int = _
var numFailedTasks: Int = _

var schedulingPool: String = _
var description: String = _

var taskData = new HashMap[Long, TaskUIData]
var executorSummary = new HashMap[String, ExecutorSummary]
}

case class TaskUIData(
taskInfo: TaskInfo,
taskMetrics: Option[TaskMetrics] = None,
errorMessage: Option[String] = None)
}

0 comments on commit 63256f5

Please sign in to comment.