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

HdfsUtils.getOutputStream uses non-existent Hadoop conf "hdfs.append.support"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 2.3.0
    • Component/s: DStreams
    • Labels:
      None

      Description

      Code:

              if (conf.getBoolean("hdfs.append.support", false) || dfs.isInstanceOf[RawLocalFileSystem]) {
                dfs.append(dfsPath)
              } else {
                throw new IllegalStateException("File exists and there is no append support!")
              }
      

      This makes the exception to be thrown if you enable writeAheadLog.closeFileAfterWrite with HDFS.

      The correct config, from DFSConfigKeys, is dfs.support.append, and the default value is true.

        Attachments

          Activity

            People

            • Assignee:
              vanzin Marcelo Vanzin
              Reporter:
              vanzin Marcelo Vanzin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: