GitHub user gvramana opened a pull request:
https://github.com/apache/spark/pull/5393
[SPARK-5818][SQL] unable to use "add jar" in hql
TranslatingClassLoader is used for Spark-shell, while current hive's add
jar can work only with URLClassLoader.
So jar has to be directly added to spark driver's class loader or its
parent loader, in case of spark-shell
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gvramana/spark addjar_fromshell
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/5393.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 #5393
----
commit 1f73a6c67c5a6de89da2b3625ea559a83d6a6a76
Author: Venkata Ramana Gollamudi <[email protected]>
Date: 2015-04-07T14:37:22Z
fixed adding jar to shell class loader
commit 275ca086038acafb9ef8fc5582c863105ad19358
Author: Venkata Ramana Gollamudi <[email protected]>
Date: 2015-04-07T15:28:36Z
Added tests
These tests will run only when compiled with -Phive
----
---
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]