From 67e3d75aed1c1a90cabffc552d5743a69ea28b54 Mon Sep 17 00:00:00 2001 From: Haohui Mai Date: Mon, 26 Oct 2015 12:02:52 -0700 Subject: [PATCH] HDFS-9304. Add HdfsClientConfigKeys class to TestHdfsConfigFields#configurationClasses. Contributed by Mingliang Liu. --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../java/org/apache/hadoop/tools/TestHdfsConfigFields.java | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index e4dc598177..7ce5a09685 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -2135,6 +2135,9 @@ Release 2.8.0 - UNRELEASED HDFS-9301. HDFS clients can't construct HdfsConfiguration instances. (Mingliang Liu via wheat9) + HDFS-9304. Add HdfsClientConfigKeys class to TestHdfsConfigFields + #configurationClasses. (Mingliang Liu via wheat9) + Release 2.7.2 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestHdfsConfigFields.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestHdfsConfigFields.java index 1c029fea93..9637f59ad9 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestHdfsConfigFields.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestHdfsConfigFields.java @@ -22,6 +22,7 @@ import java.util.HashSet; import org.apache.hadoop.conf.TestConfigurationFieldsBase; import org.apache.hadoop.hdfs.DFSConfigKeys; +import org.apache.hadoop.hdfs.client.HdfsClientConfigKeys; /** * Unit test class to compare the following MR Configuration classes: @@ -39,7 +40,8 @@ public class TestHdfsConfigFields extends TestConfigurationFieldsBase { @Override public void initializeMemberVariables() { xmlFilename = new String("hdfs-default.xml"); - configurationClasses = new Class[] { DFSConfigKeys.class }; + configurationClasses = new Class[] { HdfsClientConfigKeys.class, + DFSConfigKeys.class}; // Set error modes errorIfMissingConfigProps = true;