Skip to content

Conversation

@sarutak
Copy link
Member

@sarutak sarutak commented Oct 24, 2014

In deploy.ClientArguments.isValidJarUrl, the url is checked as follows.

def isValidJarUrl(s: String): Boolean = s.matches("(.+):(.+)jar")

So, it allows like 'hdfs:file.jar' (no authority).

@srowen
Copy link
Member

srowen commented Oct 24, 2014

+1 that's much more flexible and likely to catch syntax errors early.

@SparkQA
Copy link

SparkQA commented Oct 24, 2014

Test build #22134 has finished for PR 2925 at commit cf06173.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@andrewor14
Copy link
Contributor

Yeah LGTM I'm merging this into master and 1.1 thanks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space before should, but I'll fix this when I merge

asfgit pushed a commit that referenced this pull request Oct 24, 2014
In deploy.ClientArguments.isValidJarUrl, the url is checked as follows.

    def isValidJarUrl(s: String): Boolean = s.matches("(.+):(.+)jar")

So, it allows like 'hdfs:file.jar' (no authority).

Author: Kousuke Saruta <[email protected]>

Closes #2925 from sarutak/uri-syntax-check-improvement and squashes the following commits:

cf06173 [Kousuke Saruta] Improved URI syntax checking

(cherry picked from commit 098f83c)
Signed-off-by: Andrew Or <[email protected]>
@asfgit asfgit closed this in 098f83c Oct 24, 2014
@JoshRosen
Copy link
Contributor

It appears that this commit caused a serious regression in master and the current 1.1.1. release candidate: https://issues.apache.org/jira/browse/SPARK-4434

@sarutak
Copy link
Member Author

sarutak commented Nov 17, 2014

Ah, O.K. I'll revert this for master and 1.1.

@andrewor14
Copy link
Contributor

Here I'll do it myself. Thanks for the PR

sarutak added a commit to sarutak/spark that referenced this pull request Nov 18, 2014
In deploy.ClientArguments.isValidJarUrl, the url is checked as follows.

    def isValidJarUrl(s: String): Boolean = s.matches("(.+):(.+)jar")

So, it allows like 'hdfs:file.jar' (no authority).

Author: Kousuke Saruta <[email protected]>

Closes apache#2925 from sarutak/uri-syntax-check-improvement and squashes the following commits:

cf06173 [Kousuke Saruta] Improved URI syntax checking
@sarutak sarutak deleted the uri-syntax-check-improvement branch April 11, 2015 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants