Skip to content

Commit

Permalink
Add sc.stop().
Browse files Browse the repository at this point in the history
  • Loading branch information
yhuai committed Jun 25, 2015
1 parent b22cf7d commit 62fb1f9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ object SparkSubmitClassLoaderTest extends Logging {
throw new Exception(s"table t1 should have 10 rows instead of $count rows")
}
logInfo("Test finishes.")
sc.stop()
}
}

Expand Down Expand Up @@ -206,5 +207,6 @@ object SparkSQLConfTest extends Logging {
val hiveContext = new TestHiveContext(sc)
// Run a simple command to make sure all lazy vals in hiveContext get instantiated.
hiveContext.tables().collect()
sc.stop()
}
}

0 comments on commit 62fb1f9

Please sign in to comment.