Skip to content

Commit

Permalink
use SparkSQLEnv.stop() in ShutdownHook
Browse files Browse the repository at this point in the history
  • Loading branch information
scwf committed Aug 8, 2014
1 parent 9a54de1 commit ae28c29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private[hive] object HiveThriftServer2 extends Logging {
Runtime.getRuntime.addShutdownHook(
new Thread() {
override def run() {
SparkSQLEnv.sparkContext.stop()
SparkSQLEnv.stop()
}
}
)
Expand Down

0 comments on commit ae28c29

Please sign in to comment.