Github user SaintBacchus commented on the pull request:
https://github.com/apache/spark/pull/9026#issuecomment-147614244
@srowen In this issue there is only one `HiveContext`, but there will have
two `metastoe.Hive` instance in two different class loaderes. And in the
implement of `metastoe.Hive` it will create the each database instance in
loading this class.
So we have to set the configuration `javax.jdo.option.ConnectionURL` to a
temp dir to avoid the problem I mentioned.
And actually this logic was refer to the implement of
[SparkSQLCLIDriver](https://github.com/apache/spark/blob/master/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala#L84)ã
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]