Created 01-31-2017 03:06 PM
Hive metastore schema upgrade from 2.0.0 to 2.1.0 is failing complaining about creation of key_constraints table at "NOT".
etastore connection URL: jdbc:postgresql://dbhost:5432/hive Metastore Connection Driver : org.postgresql.Driver Metastore connection User: hive Starting upgrade metastore schema from version 1.2.0 to 2.1.0 Upgrade script upgrade-1.2.0-to-1.2.1000.postgres.sql Completed upgrade-1.2.0-to-1.2.1000.postgres.sql Upgrade script upgrade-1.2.1000-to-2.0.0.postgres.sql Completed upgrade-1.2.1000-to-2.0.0.postgres.sql Upgrade script upgrade-2.0.0-to-2.1.0.postgres.sql Error: ERROR: syntax error at or near "NOT" Position: 17 (state=42601,code=0)
Created 02-07-2017 07:43 PM
This is not a Bug, basically the 'Releases notes for HDP 2.5.3' does information for the supported metastore databases.
Created 01-31-2017 06:10 PM
Figured out the issue. We are running postgres on 8.4.
The create table if not exists "key constraints" was failing:
reason: create table if not exists is not supported in postgresql 8.4
need to change the 033-HIVE-13076.postgres.sql should do the trick.
waiting for the confirmation.
Created 02-07-2017 07:29 PM
Did you end up opening a bug with support on this? I ran into the same issue. Removing the "IF NOT EXISTS" got me past it, but I want to make sure it's reported for future versions. RHEL 6 still comes with 8.4.
Created 02-07-2017 07:43 PM
This is not a Bug, basically the 'Releases notes for HDP 2.5.3' does information for the supported metastore databases.
Created 02-07-2017 07:52 PM
Ah, good to know. Thanks.