Skip to content

Commit

Permalink
More review feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Vanzin committed Sep 23, 2014
1 parent 67f5b02 commit ec73f17
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ class YarnClusterSuite extends FunSuite with BeforeAndAfterAll with Matchers {
private var yarnCluster: MiniYARNCluster = _
private var tempDir: File = _
private var fakeSparkJar: File = _
private var oldConf: Map[String, String] = _

override def beforeAll() {
tempDir = Utils.createTempDir()

oldConf = sys.props.filter { case (k, v) => k.startsWith("spark.") }.toMap

yarnCluster = new MiniYARNCluster(getClass().getName(), 1, 1, 1)
yarnCluster.init(new YarnConfiguration())
yarnCluster.start()
Expand All @@ -60,6 +63,7 @@ class YarnClusterSuite extends FunSuite with BeforeAndAfterAll with Matchers {
override def afterAll() {
yarnCluster.stop()
sys.props.retain { case (k, v) => !k.startsWith("spark.") }
sys.props ++= oldConf
super.afterAll()
}

Expand Down

0 comments on commit ec73f17

Please sign in to comment.