flush

Definition

Flushes all Regions for the defined table/Region Server or all Regions with the specified name. Flushing means moving information from MemStore to HFiles. By default, this process is performed automatically when the MemStore fills up.

Usage

flush '[<namespace_name>:]<table_name>' | '<region_server_name>,<port_number>,<start_code>' | '<region_name>' | '<encoded_region_name>'
Arguments
Parameter Description

namespace_name

A namespace name

table_name

A table name

region_server_name

A Region Server name

port_number

A port number

start_code

A Server start code

region_name

A Region name without its encoded part. For example, if the full Region name is wordcount2,m,1637833871529.2ff3683a90c4106432c540ddd0f57cba., then the region_name is wordcount2,m,1637833871529. You can get the full Region name and exclude its encoded part via the list_regions command output (the REGION_NAME field)

encoded_region_name

An encoded part of the Region name. For example, if the full Region name is wordcount2,m,1637833871529.2ff3683a90c4106432c540ddd0f57cba., then the encoded part is 2ff3683a90c4106432c540ddd0f57cba. You can get the full Region name and obtain its encoded part via the list_regions command output (the REGION_NAME field)

TIP
You can get <server_name>, <port_number>, and <start_code> using the status 'simple' command.

Examples

Table

hbase(main):019:0> flush 'BEST_BOOKS'
Took 0.2079 seconds

Region Server

hbase(main):020:0> flush 'bds-adh-2.ru-central1.internal,16020,1642400781522'
Took 0.1736 seconds

Region name

hbase(main):021:0> flush 'BEST_BOOKS,K,1642431463389'
Took 0.0034 seconds

Encoded Region name

hbase(main):022:0> flush 'd6e6be2ad047bc3f2ea5ed6842f851b0'
Took 0.0076 seconds
Found a mistake? Seleсt text and press Ctrl+Enter to report it