Skip to content

Commit

Permalink
Increase hive.metastore-cache-maximum-size to 20000
Browse files Browse the repository at this point in the history
Current default is not large enough to keep partitions
metadata in cache for certain tpcds queries which access
all the fact tables
  • Loading branch information
raunaqmorarka committed Aug 30, 2024
1 parent b43987f commit 0d5576a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/main/sphinx/object-storage/metastores.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ are also available. They are discussed later in this topic.
- `5m`
* - `hive.metastore-cache-maximum-size`
- Maximum number of metastore data objects in the Hive metastore cache.
- `10000`
- `20000`
* - `hive.metastore-refresh-interval`
- Asynchronously refresh cached metastore data after access if it is older
than this but is not yet expired, allowing subsequent accesses to see fresh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class CachingHiveMetastoreConfig
private Duration metastoreCacheTtl = new Duration(0, SECONDS);
private Optional<Duration> statsCacheTtl = Optional.empty();
private Optional<Duration> metastoreRefreshInterval = Optional.empty();
private long metastoreCacheMaximumSize = 10000;
private long metastoreCacheMaximumSize = 20000;
private int maxMetastoreRefreshThreads = 10;
private boolean partitionCacheEnabled = true;
private boolean cacheMissing = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void testDefaults()
.setMetastoreCacheTtl(new Duration(0, SECONDS))
.setStatsCacheTtl(new Duration(5, MINUTES))
.setMetastoreRefreshInterval(null)
.setMetastoreCacheMaximumSize(10000)
.setMetastoreCacheMaximumSize(20000)
.setMaxMetastoreRefreshThreads(10)
.setPartitionCacheEnabled(true)
.setCacheMissing(true)
Expand Down

0 comments on commit 0d5576a

Please sign in to comment.