You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by dm...@apache.org on 2019/11/04 14:56:28 UTC
[hive] branch master updated: HIVE-22427: PersistenceManagerProvider Logs a Warning About datanucleus.autoStartMechanismMode (David Mollitor, reviewed by László Bodor)
This is an automated email from the ASF dual-hosted git repository.
dmollitor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new 136e0eb HIVE-22427: PersistenceManagerProvider Logs a Warning About datanucleus.autoStartMechanismMode (David Mollitor, reviewed by László Bodor)
136e0eb is described below
commit 136e0eb4daa6b28b37e0f7935079c422a6349385
Author: David Mollitor <dm...@apache.org>
AuthorDate: Mon Nov 4 09:55:29 2019 -0500
HIVE-22427: PersistenceManagerProvider Logs a Warning About datanucleus.autoStartMechanismMode (David Mollitor, reviewed by László Bodor)
---
.../org/apache/hadoop/hive/metastore/PersistenceManagerProvider.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/PersistenceManagerProvider.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/PersistenceManagerProvider.java
index 084ae83..7e9522b 100644
--- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/PersistenceManagerProvider.java
+++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/PersistenceManagerProvider.java
@@ -483,6 +483,11 @@ public class PersistenceManagerProvider {
final String autoStartKey = "datanucleus.autoStartMechanismMode";
final String autoStartIgnore = "ignored";
String currentAutoStartVal = conf.get(autoStartKey);
+ if (currentAutoStartVal == null) {
+ LOG.info("Configuration {} is not set. Defaulting to '{}'", autoStartKey,
+ autoStartIgnore);
+ currentAutoStartVal = autoStartIgnore;
+ }
if (!autoStartIgnore.equalsIgnoreCase(currentAutoStartVal)) {
LOG.warn("{} is set to unsupported value {} . Setting it to value: {}", autoStartKey,
conf.get(autoStartKey), autoStartIgnore);