hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (HIVE-23496) Add a flag to disable DB scan during Hive Server startup
Date Sun, 26 Jul 2020 00:36:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-23496?focusedWorklogId=463300&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-463300
]

ASF GitHub Bot logged work on HIVE-23496:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Jul/20 00:35
            Start Date: 26/Jul/20 00:35
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] closed pull request #1027:
URL: https://github.com/apache/hive/pull/1027


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 463300)
    Time Spent: 0.5h  (was: 20m)

> Add a flag to disable DB scan during Hive Server startup
> --------------------------------------------------------
>
>                 Key: HIVE-23496
>                 URL: https://issues.apache.org/jira/browse/HIVE-23496
>             Project: Hive
>          Issue Type: New Feature
>          Components: HiveServer2
>    Affects Versions: 2.3.7
>            Reporter: David Rabinowitz
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> At start-up, HiveServer2 will do a full DB & Table scan. For large Hive Metastores,
this operation could take 10+ minutes to complete. The goal of this task is to make this “verification”
optional if possible.
> Currently, Hive 2.3.7 has the following in [HiveMaterializedViewsRegistry|https://github.com/apache/hive/blob/rel/release-2.3.6/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveMaterializedViewsRegistry.java#L124-L127]
that is causing this behavior.
>  
> {code:java}
> for (String dbName : db.getAllDatabases()) {
>   // TODO: We should enhance metastore API such that it returns only
>   // materialized views instead of all tables
>   tables.addAll(db.getAllTableObjects(dbName));
> }
> {code}
> It seems that <= Hive 2.3.x && >= Hive 3.0 *does not* have this behavior.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message