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

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

                Author: ASF GitHub Bot
            Created on: 19/May/20 18:57
            Start Date: 19/May/20 18:57
    Worklog Time Spent: 10m 
      Work Description: davidrabinowitz opened a new pull request #1027:
URL: https://github.com/apache/hive/pull/1027


   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.
   
   It seems that <= Hive 2.3.x && >= Hive 3.0 *does not* have this behavior.
   
   This changes introduces a new flag, 
`hive.server2.materializedviews.cache.at.startup` that by setting it to false 
the cache warmup is disabled. 
   


----------------------------------------------------------------
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:
us...@infra.apache.org


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

            Worklog Id:     (was: 435120)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>          Time Spent: 10m
>  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)

Reply via email to