/[Apache-SVN]
ViewVC logotype

Revision 1304626


Jump to revision: Previous Next
Author: mbautin
Date: Fri Mar 23 22:02:53 2012 UTC (12 years, 6 months ago)
Changed paths: 13
Log Message:
[jira] [HBASE-5469] Add baseline compression efficiency to DataBlockEncodingTool

Summary:
DataBlockEncodingTool currently does not provide baseline compression
efficiency, e.g. Hadoop compression codec applied to unencoded data. E.g. if
we are using LZO to compress blocks, we would like to have the following
columns in the report (possibly as percentages of raw data size).

Baseline K+V in blockcache | Baseline K + V on disk (LZO compressed) | K + V
DataBlockEncoded in block cache | K + V DataBlockEncoded + LZOCompressed (on
disk)

Background: we never store compressed blocks in cache, but we always store
encoded data blocks in cache if data block encoding is enabled for the column
family.

This patch also has multiple bugfixes and improvements to DataBlockEncodingTool,
including presentation format, memory requirements (reduced 3x) and fixing the
handling of compression.

Test Plan:
* Run unit tests.
* Run DataBlockEncodingTool on a variety of real-world HFiles.

Reviewers: JIRA, dhruba, tedyu, stack, heyongqiang

Reviewed By: tedyu

Differential Revision: https://reviews.facebook.net/D2409

Changed paths

Path Details
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/BufferedDataBlockEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/CopyKeyDataBlockEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/DataBlockEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/DiffKeyDeltaEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/EncodedDataBlock.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/FastDiffDeltaEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/encoding/PrefixKeyDeltaEncoder.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileDataBlockEncoderImpl.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/io/encoding/TestDataBlockEncoders.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileBlock.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/regionserver/DataBlockEncodingTool.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/regionserver/EncodedSeekPerformanceTest.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26