Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0
-
None
-
n/a
Description
Various forms of CliDriver use CliConfigs to set the 'confDir' below (e.g. CliConfigs.SparkOnYarnCliConfig() used by TestMiniSparkOnYarnCliDriver.
QTestUtil.QTestUtil() has
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()); }
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.
Attachments
Attachments
Issue Links
- blocks
-
HIVE-18221 test acid default
- Resolved