diff --git common/src/test/org/apache/hadoop/hive/conf/TestHiveConf.java common/src/test/org/apache/hadoop/hive/conf/TestHiveConf.java index cd472c7..d04703c 100644 --- common/src/test/org/apache/hadoop/hive/conf/TestHiveConf.java +++ common/src/test/org/apache/hadoop/hive/conf/TestHiveConf.java @@ -82,11 +82,10 @@ public void testConfProperties() throws Exception { // ConfVar overridden in in hive-site.xml checkHadoopConf(ConfVars.METASTORE_CONNECTION_DRIVER.varname, null); checkConfVar(ConfVars.METASTORE_CONNECTION_DRIVER, "org.apache.derby.jdbc.EmbeddedDriver"); - checkHiveConf(ConfVars.METASTORE_CONNECTION_DRIVER.varname, "hive-site.xml"); // Property defined in hive-site.xml only - checkHadoopConf("test.property1", null); - checkHiveConf("test.property1", "hive-site.xml"); + checkHadoopConf("javax.jdo.option.ConnectionDriverName", null); + checkHiveConf("javax.jdo.option.ConnectionDriverName", "org.apache.derby.jdbc.EmbeddedDriver"); // Test HiveConf property variable substitution in hive-site.xml checkHiveConf("test.var.hiveconf.property", ConfVars.DEFAULTPARTITIONNAME.getDefaultValue()); diff --git common/src/test/resources/hive-site.xml common/src/test/resources/hive-site.xml deleted file mode 100644 index 0d5c834..0000000 --- common/src/test/resources/hive-site.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - javax.jdo.option.ConnectionDriverName - hive-site.xml - Override ConfVar defined in HiveConf - - - - test.property1 - hive-site.xml - Test property defined in hive-site.xml only - - - - test.var.hiveconf.property - ${hive.exec.default.partition.name} - Test hiveconf property substitution - - - diff --git data/conf/hive-site.xml data/conf/hive-site.xml index 84005b4..d6aed45 100644 --- data/conf/hive-site.xml +++ data/conf/hive-site.xml @@ -244,6 +244,12 @@ + test.var.hiveconf.property + ${hive.exec.default.partition.name} + Test hiveconf property substitution + + + hive.fetch.task.conversion minimal