Details
Description
Today there's no version/compatibility information stored in hive metastore. Also the datanucleus configuration property to automatically create missing tables is enabled by default. If you happen to start an older or newer hive or don't run the correct upgrade scripts during migration, the metastore would end up corrupted. The autoCreate schema is not always sufficient to upgrade metastore when migrating to newer release. It's not supported with all databases. Besides the migration often involves altering existing table, changing or moving data etc.
Hence it's very useful to have some consistency check to make sure that hive is using correct metastore and for production systems the schema is not automatically by running hive.
Attachments
Attachments
Issue Links
- blocks
-
HIVE-5301 Add a schema tool for offline metastore schema upgrade
- Closed
- is related to
-
HIVE-6113 Upgrade DataNucleus [was: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient]
- Closed
-
HIVE-6862 add DB schema DDL and upgrade 12to13 scripts for MS SQL Server
- Closed
-
HIVE-5606 Default Derby metastore_db initial creation fails if hive.metastore.schema.verification=true
- Patch Available
-
HIVE-1841 datanucleus.fixedDatastore should be true in hive-default.xml
- Closed
-
HIVE-12436 Default hive.metastore.schema.verification to true
- Closed
- relates to
-
HIVE-5427 TestMetastoreVersion.testVersionRestriction fails on hive 0.12
- Resolved