[ https://issues.apache.org/jira/browse/HIVE-18419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eugene Koifman updated HIVE-18419: ---------------------------------- Attachment: HIVE-18419.01.patch [~alangates] could you review please > 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)