alan.zhao created SPARK-45817:
---------------------------------

             Summary: 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


* 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to