diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml b/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml index b9d8b67dc122a..90f51728a01e7 100755 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml @@ -1779,6 +1779,22 @@ + + dfs.datanode.synconclose + false + + If this property is enabled, the datanode will instruct the + operating system to sync data block files contents to disk when the + blockfile is closed. This can help data loss in the event of a malfunction such as a power + failure. + + This has the benefit of ensuring that data is written to disk + immediately when a block is closed, avoiding the data being held + solely in the operating system cache. This can help data loss in the event + of a malfunction such as a power failure. + + + dfs.client.failover.max.attempts 15