Skip to content

SPARK-3318: Documentation update in addFile on how to use SparkFiles.get#2210

Closed
holdenk wants to merge 2 commits intoapache:masterfrom
holdenk:SPARK-3318-documentation-for-addfiles-should-say-to-use-file-not-path
Closed

SPARK-3318: Documentation update in addFile on how to use SparkFiles.get#2210
holdenk wants to merge 2 commits intoapache:masterfrom
holdenk:SPARK-3318-documentation-for-addfiles-should-say-to-use-file-not-path

Conversation

@holdenk
Copy link
Contributor

@holdenk holdenk commented Aug 29, 2014

Rather than specifying the path to SparkFiles we need to use the filename.

@mateiz
Copy link
Contributor

mateiz commented Aug 30, 2014

Looks good, thanks!

@mateiz
Copy link
Contributor

mateiz commented Aug 30, 2014

Actually you missed JavaSparkContext; it has the same issue

@mateiz
Copy link
Contributor

mateiz commented Aug 30, 2014

(And please add [SPARK-3318] at the beginning of your PR title)

@holdenk holdenk changed the title Documentation update in addFile on how to use SparkFiles.get SPARK-3318: Documentation update in addFile on how to use SparkFiles.get Aug 30, 2014
@holdenk
Copy link
Contributor Author

holdenk commented Aug 30, 2014

@mateiz Thanks, completely forgot to check the javadoc.

@mateiz
Copy link
Contributor

mateiz commented Aug 30, 2014

Alright, thanks. Going to merge this.

@SparkQA
Copy link

SparkQA commented Aug 30, 2014

QA tests have started for PR 2210 at commit a25d27a.

  • This patch merges cleanly.

@asfgit asfgit closed this in ba78383 Aug 30, 2014
@SparkQA
Copy link

SparkQA commented Aug 31, 2014

QA tests have finished for PR 2210 at commit a25d27a.

  • This patch fails unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class ExecutorClassLoader(conf: SparkConf, classUri: String, parent: ClassLoader,

xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
Rather than specifying the path to SparkFiles we need to use the filename.

Author: Holden Karau <holden@pigscanfly.ca>

Closes apache#2210 from holdenk/SPARK-3318-documentation-for-addfiles-should-say-to-use-file-not-path and squashes the following commits:

a25d27a [Holden Karau] Update the JavaSparkContext addFile method to be clear about using fileName with SparkFiles as well
0ebcb05 [Holden Karau] Documentation update in addFile on how to use SparkFiles.get to specify filename rather than path
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.

3 participants