spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wenchen Fan (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-30126) sparkContext.addFile fails when file path contains spaces
Date Thu, 12 Dec 2019 12:33:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-30126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wenchen Fan resolved SPARK-30126.
---------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

Issue resolved by pull request 26773
[https://github.com/apache/spark/pull/26773]

> sparkContext.addFile fails when file path contains spaces
> ---------------------------------------------------------
>
>                 Key: SPARK-30126
>                 URL: https://issues.apache.org/jira/browse/SPARK-30126
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 2.4.3
>            Reporter: Jan
>            Assignee: Ankit Raj Boudh
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> When uploading a file to the spark context via the addFile function, an exception is
thrown when file path contains a space character. Escaping the space with %20 or \\ or + doesn't
change the result.
>  
> to reproduce: 
> file_path = "/home/user/test dir/config.conf"
> sparkContext.addFile(file_path)
>  
> results in:
> py4j.protocol.Py4JJavaError: An error occurred while calling o131.addFile.
> : java.io.FileNotFoundException: File file:/home/user/test%20dir/config.conf does not
exist



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message