Skip to content

Commit

Permalink
[sql]use SparkSQLEnv.stop() in ShutdownHook
Browse files Browse the repository at this point in the history
Author: wangfei <wangfei1@huawei.com>

Closes apache#1852 from scwf/patch-3 and squashes the following commits:

ae28c29 [wangfei] use SparkSQLEnv.stop() in ShutdownHook
  • Loading branch information
scwf authored and marmbrus committed Aug 12, 2014
1 parent 21a95ef commit e83fdcd
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 e83fdcd

Please sign in to comment.