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 41dfbbca443fe..bcfdfa9334ffa 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,21 @@ + + dfs.datanode.synconclose + false + + If this configuration is enabled, the datanode will instruct the + operating system to sync data block files contents to disk when the + blockfile is closed. + + This has the benefit of ensuring that data is written to disk + immeditately when a block is closed, avoiding the data being held + 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