From 5ff74167ddd378a738898425c4462f3432f9c31d Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Thu, 7 Sep 2017 08:18:28 -0700 Subject: [PATCH] HDFS-12376. Enable JournalNode Sync by default. Contributed by Hanisha Koneru. --- .../src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java | 2 +- .../hadoop-hdfs/src/main/resources/hdfs-default.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java index 17cabadba2..bc7b7162d5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java @@ -924,7 +924,7 @@ public class DFSConfigKeys extends CommonConfigurationKeys { public static final String DFS_JOURNALNODE_KERBEROS_INTERNAL_SPNEGO_PRINCIPAL_KEY = "dfs.journalnode.kerberos.internal.spnego.principal"; public static final String DFS_JOURNALNODE_ENABLE_SYNC_KEY = "dfs.journalnode.enable.sync"; - public static final boolean DFS_JOURNALNODE_ENABLE_SYNC_DEFAULT = false; + public static final boolean DFS_JOURNALNODE_ENABLE_SYNC_DEFAULT = true; public static final String DFS_JOURNALNODE_SYNC_INTERVAL_KEY = "dfs.journalnode.sync.interval"; public static final long DFS_JOURNALNODE_SYNC_INTERVAL_DEFAULT = 2*60*1000L; 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 bbe2eca00b..d58e54ef0c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml @@ -3933,7 +3933,7 @@ dfs.journalnode.enable.sync - false + true If true, the journal nodes wil sync with each other. The journal nodes will periodically gossip with other journal nodes to compare edit log