Skip to content
Snippets Groups Projects
Commit e83fdcd4 authored by wangfei's avatar wangfei Committed by Michael Armbrust
Browse files

[sql]use SparkSQLEnv.stop() in ShutdownHook

Author: wangfei <wangfei1@huawei.com>

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

ae28c29 [wangfei] use SparkSQLEnv.stop() in ShutdownHook
parent 21a95ef0
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ private[hive] object HiveThriftServer2 extends Logging {
Runtime.getRuntime.addShutdownHook(
new Thread() {
override def run() {
SparkSQLEnv.sparkContext.stop()
SparkSQLEnv.stop()
}
}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment