[ https://issues.apache.org/jira/browse/HIVE-23496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HIVE-23496: ---------------------------------- Labels: pull-request-available (was: ) > 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: 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)