clear_block_cache

Definition

Removes all blocks corresponding to the specified table from BlockCache.

CAUTION
This command can significantly impact the query performance, as the subsequent queries will have to retrieve the blocks from the underlying filesystem. Use with caution.

Usage

clear_block_cache '[<namespace_name>:]<table_name>'
Arguments
Parameter Description

namespace_name

A namespace name

table_name

A table name

Examples

hbase(main):006:0> clear_block_cache 'ns1:temp2'
CacheEvictionStats{evictedBlocks=0, maxCacheSize=1638085504, failedRegionsSize=0, failedRegions=[]}
Took 0.1503 seconds
=> 1
Found a mistake? Seleсt text and press Ctrl+Enter to report it