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

ASF GitHub Bot updated SPARK-45817:
-----------------------------------
    Labels: pull-request-available  (was: )

> The isFile method in the FileSystem is Deprecated
> -------------------------------------------------
>
>                 Key: SPARK-45817
>                 URL: https://issues.apache.org/jira/browse/SPARK-45817
>             Project: Spark
>          Issue Type: Improvement
>          Components: DStreams
>    Affects Versions: 3.5.0
>         Environment: spark master
>            Reporter: alan.zhao
>            Priority: Minor
>              Labels: pull-request-available
>
> * The isFile method in the FileSystem is Deprecated,Use {@link 
> #getFileStatus(Path)} instead;
> HdfsUtils.scala
> {code:scala}
> // Some comments here
> def getOutputStream(path: String, conf: Configuration): FSDataOutputStream = {
>     val dfsPath = new Path(path)
>     val dfs = getFileSystemForPath(dfsPath, conf)
>     // If the file exists and we have append support, append instead of 
> creating a new file
>     val stream: FSDataOutputStream = {
>       if (dfs.isFile(dfsPath)) {
> .....
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to