diff --git common/src/java/org/apache/hadoop/hive/conf/HiveConf.java common/src/java/org/apache/hadoop/hive/conf/HiveConf.java index f86d6a7..9d4f08a 100644 --- common/src/java/org/apache/hadoop/hive/conf/HiveConf.java +++ common/src/java/org/apache/hadoop/hive/conf/HiveConf.java @@ -52,7 +52,7 @@ public class HiveConf extends Configuration { protected String auxJars; private static final Log l4j = LogFactory.getLog(HiveConf.class); private static URL hiveSiteURL = null; - private static URL confVarURL = null; + private URL confVarURL = null; private static final Map vars = new HashMap(); @@ -769,8 +769,12 @@ public class HiveConf extends Configuration { * Using Configuration.addResource(InputStream) would be a preferable * approach, but it turns out that method is broken since Configuration * tries to read the entire contents of the same InputStream repeatedly. + * + * HIVE-3596 - removing static and synchronized from method call, no + * other classes should access this statically, prevents long + * running JVM from not properly updating. */ - private static synchronized URL getConfVarURL() { + private URL getConfVarURL() { if (confVarURL == null) { try { Configuration conf = new Configuration();