I just deployed Cloudera 5.12 and I'm installing Hive. Following the instructions, I run
\i /usr/lib/hive/scripts/metastore/upgrade/postgres/hive-schema-1.1.0.postgres.sql
as a final step, to create the metastore. When I run the schematool validation
schematool -dbType postgres -validate
I get an error:
Validating metastore schema tables
Table(s) [ [compaction_queue, completed_txn_components, hive_locks, next_compaction_queue_id, next_lock_id, next_txn_id, txn_components, txns] ] are missing from the metastore database schema.
Failed in schema table validation.
[FAIL]
Everything else is SUCCESS and I can access the Hive databases without problems. How do I fix this error?