diff --git a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java index a496a593c2..84462afdf6 100644 --- a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java +++ b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java @@ -1565,16 +1565,18 @@ private static URL findConfigFile(ClassLoader classLoader, String name) { LOG.warn("Cannot get jar URI", e); } result = seeIfConfAtThisLocation(new File(jarUri).getParent(), name, true); - // At this point if we haven't found it, screw it, we don't know where it is - if (result == null) { - LOG.info("Unable to find config file " + name); - } } } } } } - LOG.info("Found configuration file " + result); + + if (result == null) { + LOG.info("Unable to find config file: " + name); + } else { + LOG.info("Found configuration file: " + result); + } + return result; }