GitHub user weiqingy opened a pull request: https://github.com/apache/spark/pull/17342
[SPARK-18910][SPARK-12868] Allow adding jars from hdfs ## What changes were proposed in this pull request? Spark 2.2 is going to be cut, it'll be great if SPARK-12868 can be resolved before that. There have been several PRs for this like [PR#16324](https://github.com/apache/spark/pull/16324) , but all of them are inactivity for a long time or have been closed. This PR added a SparkUrlStreamHandlerFactory, which relies on 'protocol' to choose the appropriate UrlStreamHandlerFactory like FsUrlStreamHandlerFactory to create URLStreamHandler. ## How was this patch tested? 1. Add a new unit test. 2. Check manually. Before: throw an exception with " failed unknown protocol: hdfs" <img width="914" alt="screen shot 2017-03-17 at 9 07 36 pm" src="https://cloud.githubusercontent.com/assets/8546874/24075277/5abe0a7c-0bd5-11e7-900e-ec3d3105da0b.png"> After: <img width="1148" alt="screen shot 2017-03-18 at 11 42 18 am" src="https://cloud.githubusercontent.com/assets/8546874/24075283/69382a60-0bd5-11e7-8d30-d9405c3aaaba.png"> You can merge this pull request into a Git repository by running: $ git pull https://github.com/weiqingy/spark SPARK-18910 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/17342.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 #17342 ---- commit 04556c9f2f4feb53e3f644d795a38de4a4e919ca Author: Weiqing Yang <yangweiqing...@gmail.com> Date: 2017-03-18T18:55:28Z [SPARK-18910] Allow adding jars from hdfs ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org