XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Hide
      Introduces the DirectStoreCompactor, an extension of DefaultCompactor, which writes compactions result files straight into the store directory, rather than the temp dir approach implemented by DefaultCompactor.

      In commitCompaction, it does not perform any renames. Should always be used together with PersistedStoreEngine proposed in HBASE-25395 and DirectStoreFlusher proposed in HBASE-25391, as it's up for StoreEngine implementations keep tracking of valid store files.

      To enable this, the following properties must be set in RS configuration:

      <property>
      <name>hbase.storefile.tracking.persist.enabled</name><value>true</value>
      </property>
      <property>
      <name>hbase.hstore.engine.class</name>
      <value>org.apache.hadoop.hbase.regionserver.PersistedStoreEngine</value>
      </property>
      <property>
      <name>hbase.regionserver.store.flush.context.class</name><value>org.apache.hadoop.hbase.regionserver.DirectStoreFlushContext</value>
      </property>
      <property>
      <name>hbase.hstore.defaultengine.storeflusher.class</name><value>org.apache.hadoop.hbase.regionserver.DirectStoreFlusher</value></property>
      <property>
      <name>hbase.hstore.defaultengine.compactor.class</name>
      <value>org.apache.hadoop.hbase.regionserver.compactions.DirectStoreCompactor</value>
      </property>
      Show
      Introduces the DirectStoreCompactor, an extension of DefaultCompactor, which writes compactions result files straight into the store directory, rather than the temp dir approach implemented by DefaultCompactor. In commitCompaction, it does not perform any renames. Should always be used together with PersistedStoreEngine proposed in HBASE-25395 and DirectStoreFlusher proposed in HBASE-25391 , as it's up for StoreEngine implementations keep tracking of valid store files. To enable this, the following properties must be set in RS configuration: <property> <name>hbase.storefile.tracking.persist.enabled</name><value>true</value> </property> <property> <name>hbase.hstore.engine.class</name> <value>org.apache.hadoop.hbase.regionserver.PersistedStoreEngine</value> </property> <property> <name>hbase.regionserver.store.flush.context.class</name><value>org.apache.hadoop.hbase.regionserver.DirectStoreFlushContext</value> </property> <property> <name>hbase.hstore.defaultengine.storeflusher.class</name><value>org.apache.hadoop.hbase.regionserver.DirectStoreFlusher</value></property> <property> <name>hbase.hstore.defaultengine.compactor.class</name> <value>org.apache.hadoop.hbase.regionserver.compactions.DirectStoreCompactor</value> </property>

    Description

      when performing compaction, write directly to the data directory

      Attachments

        Issue Links

          Activity

            People

              wchevreuil Wellington Chevreuil
              taklwu Tak-Lon (Stephen) Wu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: