[ 
https://issues.apache.org/jira/browse/HIVE-15072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15684025#comment-15684025
 ] 

Naveen Gangam commented on HIVE-15072:
--------------------------------------

Thanks for the review and commit [~ctang.ma]. I do not think this is needed for 
older releases. However, I would like to understand why the unit test would not 
work for older releases. The unit test uses the schema version from the HMS 
metastore to determine the version of the file to parse and determine the table 
list. I have tested this against older schema versions too. Do you see this not 
working for any reason? Thanks

> Schematool should recognize missing tables in metastore
> -------------------------------------------------------
>
>                 Key: HIVE-15072
>                 URL: https://issues.apache.org/jira/browse/HIVE-15072
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Metastore
>            Reporter: Yongzhi Chen
>            Assignee: Naveen Gangam
>             Fix For: 2.2.0
>
>         Attachments: HIVE-15072.patch
>
>
> When Install a new database failed half way(for some other reasons), not all 
> of the metastore tables are installed. This caused HMS server failed to start 
> up due to missing tables. Re-run the Schematool, It ran successfully, and in 
> the stdout log said: "Database already has tables. Skipping table creation".
> However, restarting HMS getting the same error reporting missing tables.
> Schematool should detect missing tables and provide options to go ahead and 
> recreate missing tables in the case of new installation



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to