Skip to content

Commit

Permalink
Merge pull request linkedin#9 from akshayrai/sparkTypeMismatch
Browse files Browse the repository at this point in the history
LIHADOOP-18977: Dr. Elephant doesn't compile with spark 1.5.0+
  • Loading branch information
akshayrai committed Apr 11, 2016
2 parents 302ae53 + 467c81f commit 9bf978a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/org/apache/spark/deploy/history/SparkDataCollection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import java.util.{List => JList}
import java.util.{ArrayList => JArrayList}
import java.util.Properties

import org.apache.spark.util.collection.OpenHashSet
import scala.collection.mutable


/**
Expand Down Expand Up @@ -214,7 +214,7 @@ class SparkDataCollection(applicationEventListener: ApplicationEventListener,
jobInfo.endTime = data.completionTime.getOrElse(0)

data.stageIds.foreach{ case (id: Int) => jobInfo.addStageId(id)}
addIntSetToJSet(data.completedStageIndices, jobInfo.completedStageIndices)
addIntSetToJSet(data.completedStageIndices.asInstanceOf[mutable.HashSet[Int]], jobInfo.completedStageIndices)

_jobProgressData.addJobInfo(id, jobInfo)
}
Expand Down Expand Up @@ -249,7 +249,7 @@ class SparkDataCollection(applicationEventListener: ApplicationEventListener,
stageInfo.outputBytes = data.outputBytes
stageInfo.shuffleReadBytes = data.shuffleReadTotalBytes
stageInfo.shuffleWriteBytes = data.shuffleWriteBytes
addIntSetToJSet(data.completedIndices, stageInfo.completedIndices)
addIntSetToJSet(data.completedIndices.asInstanceOf[mutable.HashSet[Int]], stageInfo.completedIndices)

_jobProgressData.addStageInfo(id._1, id._2, stageInfo)
}
Expand Down Expand Up @@ -300,7 +300,7 @@ object SparkDataCollection {
list
}

def addIntSetToJSet(set: OpenHashSet[Int], jset: JSet[Integer]): Unit = {
def addIntSetToJSet(set: mutable.HashSet[Int], jset: JSet[Integer]): Unit = {
val it = set.iterator
while (it.hasNext) {
jset.add(it.next())
Expand Down

0 comments on commit 9bf978a

Please sign in to comment.