Class ErasureCodeConfigurer
java.lang.Object
org.apache.accumulo.core.client.admin.compaction.CompressionConfigurer
org.apache.accumulo.core.client.admin.compaction.ErasureCodeConfigurer
- All Implemented Interfaces:
CompactionConfigurer
A compaction configurer that extends CompressionConfigurer and adds the ability to control and
configure how Erasure Codes work. This plugin accepts the following options, when setting these
options on a table prefix them with table.compaction.configurer.opts..
- Set "erasure.code.size.conversion" to a size in bytes. The suffixes K,M,and G can be used. This is the minimum file size to allow conversion to erasure code. If a file is below this size it will be replicated otherwise erasure coding will be enabled.
- Set "erasure.code.bypass" to true or false. Setting this to true will bypass erasure codes if the are configured. This options allows initiated compactions to bypass logic in this class if needed.
- Optionally set "erasure.code.policy" as the policy to use when erasure codes are used. If this is not set, then it will fall back to what is set on the table.
- Since:
- 2.1.4
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.accumulo.core.client.admin.compaction.CompactionConfigurer
CompactionConfigurer.InitParameters, CompactionConfigurer.InputParameters, CompactionConfigurer.Overrides -
Field Summary
FieldsFields inherited from class org.apache.accumulo.core.client.admin.compaction.CompressionConfigurer
LARGE_FILE_COMPRESSION_THRESHOLD, LARGE_FILE_COMPRESSION_TYPE -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ERASURE_CODE_SIZE
- See Also:
-
BYPASS_ERASURE_CODES
- See Also:
-
ERASURE_CODE_POLICY
- See Also:
-
-
Constructor Details
-
ErasureCodeConfigurer
public ErasureCodeConfigurer()
-
-
Method Details
-
init
- Specified by:
initin interfaceCompactionConfigurer- Overrides:
initin classCompressionConfigurer
-
override
- Specified by:
overridein interfaceCompactionConfigurer- Overrides:
overridein classCompressionConfigurer
-