GitHub user liancheng opened a pull request:
https://github.com/apache/spark/pull/7994
[SPARK-9593] [SQL] [HOTFIX] Makes the Hadoop shims loading fix more robust
This is a follow-up of #7929.
We found that Jenkins SBT master build still fails because of the Hadoop
shims loading issue. But the failure doesn't appear to be deterministic. My
suspect is that Hadoop `VersionInfo` class may fail to inspect Hadoop version,
and the shims loading branch is skipped.
This PR tries to make the fix more robust:
1. When Hadoop version is available, we load `Hadoop20SShims` for versions
<= 2.0.x as @srowen suggested in PR #7929.
2. Otherwise, we use `Path.getPathWithoutSchemeAndAuthority` as a probe
method, which doesn't exist in Hadoop 1.x or 2.0.x. If this method is not
found, `Hadoop20SShims` is also loaded.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/liancheng/spark spark-9593/fix-hadoop-shims
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/7994.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 #7994
----
commit 05ee9341b32e2213bb28c7fb76c391b4f23c8099
Author: Cheng Lian <[email protected]>
Date: 2015-08-06T12:22:02Z
Makes the Hadoop shims loading fix more robust
----
---
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]