Skip to main content

Compactions

  • Chapter
  • First Online:
Apache HBase Primer
  • 938 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 29.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics