diff --git common/src/test/org/apache/hadoop/hive/conf/TestHiveConf.java common/src/test/org/apache/hadoop/hive/conf/TestHiveConf.java index dfd3dbf..f844baa 100644 --- common/src/test/org/apache/hadoop/hive/conf/TestHiveConf.java +++ common/src/test/org/apache/hadoop/hive/conf/TestHiveConf.java @@ -17,7 +17,7 @@ */ package org.apache.hadoop.hive.conf; -import org.apache.hadoop.conf.Configuration; +import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.util.Shell; @@ -36,7 +36,7 @@ @Test public void testHiveSitePath() throws Exception { String expectedPath = HiveTestUtils.getFileFromClasspath("hive-site.xml"); - String hiveSiteLocation = new HiveConf().getHiveSiteLocation().getPath(); + String hiveSiteLocation = HiveConf.getHiveSiteLocation().getPath(); if (Shell.WINDOWS) { // Do case-insensitive comparison on Windows, as drive letter can have different case. expectedPath = expectedPath.toLowerCase(); @@ -46,7 +46,7 @@ public void testHiveSitePath() throws Exception { } private void checkHadoopConf(String name, String expectedHadoopVal) throws Exception { - Assert.assertEquals(expectedHadoopVal, new Configuration().get(name)); + Assert.assertEquals(expectedHadoopVal, new JobConf(HiveConf.class).get(name)); } private void checkConfVar(ConfVars var, String expectedConfVarVal) throws Exception {