You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/11/23 12:03:10 UTC
[jira] [Commented] (SPARK-11924) SparkContext stop method does not
close HiveContexts
[ https://issues.apache.org/jira/browse/SPARK-11924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15021953#comment-15021953 ]
Sean Owen commented on SPARK-11924:
-----------------------------------
I'm not sure this works in general outside tests, or is supposed to, but clearly the tests are able to test {{HiveContext}} somehow. Are you able to use {{TestHiveContext}} instead or adopt its way of dealing with this?
> SparkContext stop method does not close HiveContexts
> ----------------------------------------------------
>
> Key: SPARK-11924
> URL: https://issues.apache.org/jira/browse/SPARK-11924
> Project: Spark
> Issue Type: Bug
> Affects Versions: 1.5.1
> Reporter: Sylvain Lequeux
>
> In my unit tests, I create one HiveContext inside each test suite using a HiveContext creation in beforeAll and a SparkContext stop call in afterAll.
> If I have 2 test suites, then it raise an exception at runtime :
> "Another instance of Derby may have already booted the database"
> It works with Spark 1.4.1 but does not work in 1.5.1.
> It works fine using standard SQLContext instead of HiveContext.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org