You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/07/19 00:35:00 UTC

[jira] [Work logged] (HIVE-23496) Add a flag to disable DB scan during Hive Server startup

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

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

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


   This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
   Feel free to reach out on the dev@hive.apache.org list if the patch is in need of reviews.


----------------------------------------------------------------
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: 460767)
    Time Spent: 20m  (was: 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
>              Labels: pull-request-available
>          Time Spent: 20m
>  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)