diff options
author | wangfei <wangfei1@huawei.com> | 2014-08-11 20:10:13 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-08-11 20:10:13 -0700 |
commit | e83fdcd421d132812411eb805565b76f087f1bc0 (patch) | |
tree | a4c008d06baf44b0b435530bb625a2d882e97f91 /sql/hive-thriftserver/src | |
parent | 21a95ef051f7b23a80d147aadb00dfa4ebb169b0 (diff) | |
download | spark-e83fdcd421d132812411eb805565b76f087f1bc0.tar.gz spark-e83fdcd421d132812411eb805565b76f087f1bc0.tar.bz2 spark-e83fdcd421d132812411eb805565b76f087f1bc0.zip |
[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
Diffstat (limited to 'sql/hive-thriftserver/src')
-rw-r--r-- | sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala index 6f7942aba3..cadf7aaf42 100644 --- a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala +++ b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala @@ -60,7 +60,7 @@ private[hive] object HiveThriftServer2 extends Logging { Runtime.getRuntime.addShutdownHook( new Thread() { override def run() { - SparkSQLEnv.sparkContext.stop() + SparkSQLEnv.stop() } } ) |