You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2014/09/28 10:01:32 UTC
git commit: SPARK-3699: SQL and Hive console tasks now clean up
appropriately
Repository: spark
Updated Branches:
refs/heads/master 66e1c40c6 -> 6918012d0
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 <wi...@redhat.com>
Closes #2547 from willb/consoleCleanup and squashes the following commits:
d5e431f [William Benton] SQL and Hive console tasks now clean up.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/6918012d
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/6918012d
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/6918012d
Branch: refs/heads/master
Commit: 6918012d0f4841c5422b5827879a952428ec3a62
Parents: 66e1c40
Author: William Benton <wi...@redhat.com>
Authored: Sun Sep 28 01:01:27 2014 -0700
Committer: Reynold Xin <rx...@apache.org>
Committed: Sun Sep 28 01:01:27 2014 -0700
----------------------------------------------------------------------
project/SparkBuild.scala | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/6918012d/project/SparkBuild.scala
----------------------------------------------------------------------
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index 12ac822..01a5b20 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()"
)
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org