HDFS-9304. Add HdfsClientConfigKeys class to TestHdfsConfigFields#configurationClasses. Contributed by Mingliang Liu.

This commit is contained in:
Haohui Mai 2015-10-26 12:02:52 -07:00
parent 07169e25ce
commit aeceb2eef6
2 changed files with 6 additions and 1 deletions

View File

@ -1303,6 +1303,9 @@ Release 2.8.0 - UNRELEASED
HDFS-9301. HDFS clients can't construct HdfsConfiguration instances. HDFS-9301. HDFS clients can't construct HdfsConfiguration instances.
(Mingliang Liu via wheat9) (Mingliang Liu via wheat9)
HDFS-9304. Add HdfsClientConfigKeys class to TestHdfsConfigFields
#configurationClasses. (Mingliang Liu via wheat9)
Release 2.7.2 - UNRELEASED Release 2.7.2 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -22,6 +22,7 @@ import java.util.HashSet;
import org.apache.hadoop.conf.TestConfigurationFieldsBase; import org.apache.hadoop.conf.TestConfigurationFieldsBase;
import org.apache.hadoop.hdfs.DFSConfigKeys; import org.apache.hadoop.hdfs.DFSConfigKeys;
import org.apache.hadoop.hdfs.client.HdfsClientConfigKeys;
/** /**
* Unit test class to compare the following MR Configuration classes: * Unit test class to compare the following MR Configuration classes:
@ -39,7 +40,8 @@ public class TestHdfsConfigFields extends TestConfigurationFieldsBase {
@Override @Override
public void initializeMemberVariables() { public void initializeMemberVariables() {
xmlFilename = new String("hdfs-default.xml"); xmlFilename = new String("hdfs-default.xml");
configurationClasses = new Class[] { DFSConfigKeys.class }; configurationClasses = new Class[] { HdfsClientConfigKeys.class,
DFSConfigKeys.class};
// Set error modes // Set error modes
errorIfMissingConfigProps = true; errorIfMissingConfigProps = true;