Github user pwendell commented on a diff in the pull request:
https://github.com/apache/incubator-spark/pull/625#discussion_r9953789
--- Diff: core/src/main/scala/org/apache/spark/deploy/ClientArguments.scala
---
@@ -115,3 +110,7 @@ private[spark] class ClientArguments(args:
Array[String]) {
System.exit(exitCode)
}
}
+
+object ClientArguments {
+ def isValidJarUrl(s: String) = s.matches("(.+):(.+)jar")
--- End diff --
@hsaputra - actually the `//` is not a require part of a URI, it is a
scheme-dependent part that schemes chose to handle differently. For instance I
think that Hadoop is alright with `file:/path/to/my/file` or even
`file:path/to/my/file`.
This particular piece of code is just providing a quick sanity check. If
the user enters an invalid URL they will get a specific error message
downstream...
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. To do so, please top-post your response.
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.
---