H.Potter
H.Potter

Reputation: 157

Is HBase block cache dropped when restart HBase?

I am currently confused with the HBase block cache.

I have come to aware about the existence of HBase block cache and it is for read performance. The question is that, if I stop the HBase by command,

stop-hbase.sh

and restart HBase by command,

start-hbase.sh

would it cause dropping all the block caches of HBase and block caches become empty?

Thank you all for advance.

Upvotes: 0

Views: 349

Answers (2)

Alfonso Men
Alfonso Men

Reputation: 1

Yes Block cache is a read cache, and is stored in memory and will not recover when rs restart

Upvotes: 0

Kenry Sanchez
Kenry Sanchez

Reputation: 1743

Yes, that's right. HBase BlockCache is instantiated at region server startup and is retained for the entire lifetime of the process.

If you restart the deamons, you are going to have an empty block cache due to the region server is created again. The data which is always saved is the data which is stored in HFiles.

Upvotes: 1

Related Questions