[ 
https://issues.apache.org/jira/browse/SPARK-17525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15487789#comment-15487789
 ] 

Apache Spark commented on SPARK-17525:
--------------------------------------

User 'sjakthol' has created a pull request for this issue:
https://github.com/apache/spark/pull/15081

> SparkContext.clearFiles() still present in the PySpark bindings though the 
> underlying Scala method was removed in Spark 2.0
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-17525
>                 URL: https://issues.apache.org/jira/browse/SPARK-17525
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 2.0.0
>            Reporter: Sami Jaktholm
>            Priority: Trivial
>
> STR: In PySpark shell, run sc.clearFiles()
> What happens:
> {noformat}
> py4j.protocol.Py4JError: An error occurred while calling o74.clearFiles. 
> Trace:
> py4j.Py4JException: Method clearFiles([]) does not exist
>       at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:318)
>       at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:326)
>       at py4j.Gateway.invoke(Gateway.java:272)
>       at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:128)
>       at py4j.commands.CallCommand.execute(CallCommand.java:79)
>       at py4j.GatewayConnection.run(GatewayConnection.java:211)
>       at java.lang.Thread.run(Thread.java:745)
> {noformat}
> Apparently the old and deprecated SparkContext.clearFiles() was removed from 
> Spark 2.0 but it's still present in the PySpark API. It should be removed 
> from there too.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to