GitHub user brkyvz opened a pull request: https://github.com/apache/spark/pull/15224
[SPARK-17650] malformed url's throw exceptions before bricking Executors ## What changes were proposed in this pull request? When a malformed URL was sent to Executors through `sc.addJar` and `sc.addFile`, the executors become unusable, because they constantly throw `MalformedURLException`s and can never acknowledge that the file or jar is just bad input. This PR tries to fix that problem by making sure MalformedURLs can never be submitted through `sc.addJar` and `sc.addFile`. Another solution would be to blacklist bad files and jars on Executors. Maybe fail the first time, and then ignore the second time (but print a warning message). ## How was this patch tested? Unit tests in SparkContextSuite You can merge this pull request into a Git repository by running: $ git pull https://github.com/brkyvz/spark SPARK-17650 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/15224.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 #15224 ---- commit c65f94f440fd67c1d3b555e647dede95ac71fa25 Author: Burak Yavuz <brk...@gmail.com> Date: 2016-09-23T21:09:38Z SPARK-17650: malformed url's throw exceptions before bricking Executors ---- --- 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