GitHub user SaintBacchus opened a pull request:
https://github.com/apache/spark/pull/9026
[SPARK-11000][YARN]Bug fix: Derby have booted the database twice in yarn
security mode.
[obtainTokenForHiveMetastore](https://github.com/apache/spark/blob/master/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala#L1267)
in yarn.Client.scala will init the `Hive`.
It will create a connect to the database and the meta store client in
`HiveContext` will also create a connect to the database. If use the derby by
default, it will go wrong.
So I specilized the configuration of the `javax.jdo.option.ConnectionURL`
in the `obtainTokenForHiveMetastore` to avoid this issue.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/SaintBacchus/spark SPARK-11000
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9026.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #9026
----
commit 0fab8c74977927be9a505025754b39fcbef9d614
Author: huangzhaowei <[email protected]>
Date: 2015-10-08T07:38:10Z
[SPARK-11000][YARN]Bug fix: Derby have booted the database twice in yarn
security mode.
----
---
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]