spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcelo Vanzin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-22788) HdfsUtils.getOutputStream uses non-existent Hadoop conf "hdfs.append.support"
Date Thu, 14 Dec 2017 20:39:00 GMT
Marcelo Vanzin created SPARK-22788:
--------------------------------------

             Summary: HdfsUtils.getOutputStream uses non-existent Hadoop conf "hdfs.append.support"
                 Key: SPARK-22788
                 URL: https://issues.apache.org/jira/browse/SPARK-22788
             Project: Spark
          Issue Type: Bug
          Components: DStreams
    Affects Versions: 1.6.0
            Reporter: Marcelo Vanzin
            Priority: Trivial


Code: 

{noformat}
        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!")
        }
{noformat}

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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message