Abstract
Compactions were introduced in Chapter 2 . In this chapter, I will discuss compactions in more detail. Each flush of the MemStore generates a StoreFile, which is façade on an HFile. The MemStore size at which a flush is performed is set in hbase.hregion.memstore.flush.size, which is 128MB by default. The MemStore size is checked at a frequency set in hbase.server.thread.wakefrequency, which has a default of 10,000 ms. If the number of StoreFiles in a store exceed some limits/thresholds, the files are compacted into larger StoreFiles. Compaction is the process of creating a larger StoreFile (HFile) file by merging smaller StoreFilefiles.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Deepak Vohra
About this chapter
Cite this chapter
Vohra, D. (2016). Compactions. In: Apache HBase Primer. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2424-3_11
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2424-3_11
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2423-6
Online ISBN: 978-1-4842-2424-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)