Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-45817

The isFile method in the FileSystem is Deprecated

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5.0
    • None
    • DStreams
    • spark master

    Description

      • The isFile method in the FileSystem is Deprecated,Use {@link #getFileStatus(Path)}

        instead;
        HdfsUtils.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)) {
        .....
        

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alanlemma alan.zhao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: