Repository: hive Updated Branches: refs/heads/branch-2.1 7f6eb41dd -> 113cfb03e refs/heads/master d72d2cf83 -> 164889838
HIVE-14322 : Postgres db issues after Datanucleus 4.x upgrade (Sergey Shelukhin, reviewed by Thejas M Nair) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/113cfb03 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/113cfb03 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/113cfb03 Branch: refs/heads/branch-2.1 Commit: 113cfb03e3b4a6b3d1a56de444bcce111ea1e32b Parents: 7f6eb41 Author: Sergey Shelukhin <[email protected]> Authored: Mon Aug 1 11:37:04 2016 -0700 Committer: Sergey Shelukhin <[email protected]> Committed: Mon Aug 1 11:43:59 2016 -0700 ---------------------------------------------------------------------- common/src/java/org/apache/hadoop/hive/conf/HiveConf.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/113cfb03/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java ---------------------------------------------------------------------- diff --git a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java index 4ecafad..d0f0c25 100644 --- a/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java +++ b/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java @@ -228,6 +228,7 @@ public class HiveConf extends Configuration { HiveConf.ConfVars.METASTORE_CACHE_PINOBJTYPES, HiveConf.ConfVars.METASTORE_CONNECTION_POOLING_TYPE, HiveConf.ConfVars.METASTORE_VALIDATE_TABLES, + HiveConf.ConfVars.METASTORE_DATANUCLEUS_INIT_COL_INFO, HiveConf.ConfVars.METASTORE_VALIDATE_COLUMNS, HiveConf.ConfVars.METASTORE_VALIDATE_CONSTRAINTS, HiveConf.ConfVars.METASTORE_STORE_MANAGER_TYPE, @@ -703,6 +704,10 @@ public class HiveConf extends Configuration { "List of comma separated metastore object types that should be pinned in the cache"), METASTORE_CONNECTION_POOLING_TYPE("datanucleus.connectionPoolingType", "BONECP", "Specify connection pool library for datanucleus"), + // Workaround for DN bug on Postgres: + // http://www.datanucleus.org/servlet/forum/viewthread_thread,7985_offset + METASTORE_DATANUCLEUS_INIT_COL_INFO("datanucleus.rdbms.initializeColumnInfo", "NONE", + "initializeColumnInfo setting for DataNucleus; set to NONE at least on Postgres."), METASTORE_VALIDATE_TABLES("datanucleus.schema.validateTables", false, "validates existing schema against code. turn this on if you want to verify existing schema"), METASTORE_VALIDATE_COLUMNS("datanucleus.schema.validateColumns", false,
