GitHub user dennishuo opened a pull request:
https://github.com/apache/spark/pull/7549
[SPARK-9206] [SQL] Fix HiveContext classloading for GCS connector.
IsolatedClientLoader.isSharedClass includes all of com.google.\*, presumably
for Guava, protobuf, and/or other shared Google libraries, but needs to
count com.google.cloud.\* as "hive classes" when determining which
ClassLoader
to use. Otherwise, things like HiveContext.parquetFile will throw a
ClassCastException when fs.defaultFS is set to a Google Cloud Storage
(gs://)
path. On StackOverflow: http://stackoverflow.com/questions/31478955
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dennishuo/spark dhuo-fix-hivecontext-gcs
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/7549.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 #7549
----
commit 1f8db0714c453467bfe2c05e5550c714b35678f9
Author: Dennis Huo <[email protected]>
Date: 2015-07-20T22:58:26Z
Fix HiveContext classloading for GCS connector.
IsolatedClientLoader.isSharedClass includes all of com.google.*, presumably
for Guava, protobuf, and/or other shared Google libraries, but needs to
count com.google.cloud.* as "hive classes" when determining which
ClassLoader
to use. Otherwise, things like HiveContext.parquetFile will throw a
ClassCastException when fs.defaultFS is set to a Google Cloud Storage
(gs://)
path. On StackOverflow: http://stackoverflow.com/questions/31478955
----
---
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]