You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "David Rabinowitz (Jira)" <ji...@apache.org> on 2020/05/18 21:52:00 UTC
[jira] [Created] (HIVE-23496) Add a flag to disable DB scan during
Hive Server startup
David Rabinowitz created HIVE-23496:
---------------------------------------
Summary: 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
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)