hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject [1/2] hadoop git commit: HDFS-14676. Wrong default value for fs.df.interval. Contributed by xiangguang zheng.
Date Tue, 01 Aug 2017 20:34:10 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 4006cc266 -> d19504866
  refs/heads/trunk 91f120f74 -> 72eba25e0


HDFS-14676. Wrong default value for fs.df.interval. Contributed by xiangguang zheng.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/72eba25e
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/72eba25e
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/72eba25e

Branch: refs/heads/trunk
Commit: 72eba25e09e69d35c541603844dacf70a8499327
Parents: 91f120f
Author: Arpit Agarwal <arp@apache.org>
Authored: Tue Aug 1 13:31:44 2017 -0700
Committer: Arpit Agarwal <arp@apache.org>
Committed: Tue Aug 1 13:31:44 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/fs/DF.java              | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/72eba25e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/DF.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/DF.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/DF.java
index 41d77de..7a94088 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/DF.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/DF.java
@@ -39,9 +39,6 @@ import com.google.common.annotations.VisibleForTesting;
 @InterfaceStability.Evolving
 public class DF extends Shell {
 
-  /** Default DF refresh interval. */
-  public static final long DF_INTERVAL_DEFAULT = 3 * 1000;
-
   private final String dirPath;
   private final File dirFile;
   private String filesystem;
@@ -50,7 +47,8 @@ public class DF extends Shell {
   private ArrayList<String> output;
 
   public DF(File path, Configuration conf) throws IOException {
-    this(path, conf.getLong(CommonConfigurationKeys.FS_DF_INTERVAL_KEY, DF.DF_INTERVAL_DEFAULT));
+    this(path, conf.getLong(CommonConfigurationKeys.FS_DF_INTERVAL_KEY,
+        CommonConfigurationKeysPublic.FS_DF_INTERVAL_DEFAULT));
   }
 
   public DF(File path, long dfInterval) throws IOException {
@@ -214,6 +212,7 @@ public class DF extends Shell {
     if (args.length > 0)
       path = args[0];
 
-    System.out.println(new DF(new File(path), DF_INTERVAL_DEFAULT).toString());
+    System.out.println(new DF(new File(path),
+        CommonConfigurationKeysPublic.FS_DF_INTERVAL_DEFAULT).toString());
   }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message