GitHub user james64 opened a pull request:
https://github.com/apache/spark/pull/19834
[SPARK-22585][Core] Path in addJar is not url encoded
## What changes were proposed in this pull request?
This updates a behavior of `addJar` method of `sparkContext` class. If path
without any scheme is passed as input it is used literally without url
encoding/decoding it.
## How was this patch tested?
A unit test is added for this.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/james64/spark SPARK-22585-encode-add-jar
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19834.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 #19834
----
commit a312107761a8de4779c1d1401d7099beb01190b6
Author: Jakub Dubovsky <[email protected]>
Date: 2017-11-28T12:39:17Z
Do not decode path without schema in addJar
commit 1fc5db37fb6cd9f554a9651a04d9775c9b9a475a
Author: Jakub Dubovsky <[email protected]>
Date: 2017-11-28T15:10:28Z
Add unit test
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]