aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorWilliam Benton <willb@redhat.com>2014-09-28 01:01:27 -0700
committerReynold Xin <rxin@apache.org>2014-09-28 01:01:27 -0700
commit6918012d0f4841c5422b5827879a952428ec3a62 (patch)
tree16506ca523aa071967730ac035bee5376f9fa7b1 /project
parent66e1c40c67f40dc4a5519812bc84877751933e7a (diff)
downloadspark-6918012d0f4841c5422b5827879a952428ec3a62.tar.gz
spark-6918012d0f4841c5422b5827879a952428ec3a62.tar.bz2
spark-6918012d0f4841c5422b5827879a952428ec3a62.zip
SPARK-3699: SQL and Hive console tasks now clean up appropriately
The sbt tasks sql/console and hive/console will now `stop()` the `SparkContext` upon exit. Previously, they left an ugly stack trace when quitting. Author: William Benton <willb@redhat.com> Closes #2547 from willb/consoleCleanup and squashes the following commits: d5e431f [William Benton] SQL and Hive console tasks now clean up.
Diffstat (limited to 'project')
-rw-r--r--project/SparkBuild.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index 12ac82293d..01a5b20e7c 100644
--- a/project/SparkBuild.scala
+++ b/project/SparkBuild.scala
@@ -221,7 +221,8 @@ object SQL {
|import org.apache.spark.sql.catalyst.util._
|import org.apache.spark.sql.execution
|import org.apache.spark.sql.test.TestSQLContext._
- |import org.apache.spark.sql.parquet.ParquetTestData""".stripMargin
+ |import org.apache.spark.sql.parquet.ParquetTestData""".stripMargin,
+ cleanupCommands in console := "sparkContext.stop()"
)
}
@@ -249,7 +250,8 @@ object Hive {
|import org.apache.spark.sql.execution
|import org.apache.spark.sql.hive._
|import org.apache.spark.sql.hive.test.TestHive._
- |import org.apache.spark.sql.parquet.ParquetTestData""".stripMargin
+ |import org.apache.spark.sql.parquet.ParquetTestData""".stripMargin,
+ cleanupCommands in console := "sparkContext.stop()"
)
}