[ https://issues.apache.org/jira/browse/HIVE-18419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16322856#comment-16322856 ]
Eugene Koifman commented on HIVE-18419: --------------------------------------- looks related {noformat} java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:86) at org.junit.Assert.assertTrue(Assert.java:41) at org.junit.Assert.assertFalse(Assert.java:64) at org.junit.Assert.assertFalse(Assert.java:74) at org.apache.hadoop.hive.metastore.conf.TestMetastoreConf.readHiveSiteWithHiveHomeDir(TestMetastoreConf.java:200) {noformat} > CliDriver loads different hive-site.xml into HiveConf and MetastoreConf > ----------------------------------------------------------------------- > > Key: HIVE-18419 > URL: https://issues.apache.org/jira/browse/HIVE-18419 > Project: Hive > Issue Type: Bug > Components: Standalone Metastore, Test > Affects Versions: 3.0.0 > Reporter: Eugene Koifman > Assignee: Eugene Koifman > Attachments: HIVE-18419.01.patch > > > Various forms of CliDriver use CliConfigs to set the 'confDir' below (e.g. > CliConfigs.SparkOnYarnCliConfig() used by TestMiniSparkOnYarnCliDriver. > QTestUtil.QTestUtil() has > {noformat} > if (confDir != null && !confDir.isEmpty()) { > HiveConf.setHiveSiteLocation(new URL("file://"+ new > File(confDir).toURI().getPath() + "/hive-site.xml")); > MetastoreConf.setHiveSiteLocation(HiveConf.getHiveSiteLocation()); > System.out.println("Setting hive-site: > "+HiveConf.getHiveSiteLocation()); > } > {noformat} > This causes HiveConf.initialize() to load hvie-site.xml from that location. > MetastoreConf only loads hive-site.xml from the classpath which in the test > environment picks up data/conf/hive-site.xml > So different parts of the system may end up disagreeing about property values. -- This message was sent by Atlassian JIRA (v6.4.14#64029)