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

Chaoyu Tang commented on HIVE-15072:
------------------------------------

Your unit test case is to upgrade to 2.2.0 (see the line of code in the test: 
schemaTool.doUpgrade("2.2.0");) version 2.2.0 is the current Hive version, so I 
think it might not work for old versions, no?

> 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