HBase
  1. HBase
  2. HBASE-8496

Implement tags and the internals of how a tag should look like

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.98.0, 0.95.2
    • Fix Version/s: 0.98.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      Hide
      Tags are additional metadata to be added with the KVs.
      To enable the tags to be persisted in the HFiles, V3 version of HFile should be used.
      <property>
            <name>hfile.format.version</name>
            <value>3</value>
        </property>
      The tags has the below format
      <2 byte tag length><1 byte type code><tag>
      where <type> is the type of the tag, <tag> is a byte[] that has the tag data.
      To add Tags using Puts
      Put.add(byte[] family, byte [] qualifier, byte [] value, Tag[] tag)
      Put.add(byte[] family, byte[] qualifier, long ts, byte[] value, Tag[] tag)
      Can be used.
      Note that even after changing the version to V3, the no-tag case will also be working fine as in V2 format.
      Show
      Tags are additional metadata to be added with the KVs. To enable the tags to be persisted in the HFiles, V3 version of HFile should be used. <property>       <name>hfile.format.version</name>       <value>3</value>   </property> The tags has the below format <2 byte tag length><1 byte type code><tag> where <type> is the type of the tag, <tag> is a byte[] that has the tag data. To add Tags using Puts Put.add(byte[] family, byte [] qualifier, byte [] value, Tag[] tag) Put.add(byte[] family, byte[] qualifier, long ts, byte[] value, Tag[] tag) Can be used. Note that even after changing the version to V3, the no-tag case will also be working fine as in V2 format.

      Description

      The intent of this JIRA comes from HBASE-7897.
      This would help us to decide on the structure and format of how the tags should look like.

      1. Tag design.pdf
        118 kB
        ramkrishna.s.vasudevan
      2. Tag design_updated.pdf
        46 kB
        ramkrishna.s.vasudevan
      3. Tag_In_KV_Buffer_For_reference.patch
        303 kB
        ramkrishna.s.vasudevan
      4. Performance_report.xlsx
        28 kB
        ramkrishna.s.vasudevan
      5. HBASE-8496.patch
        337 kB
        ramkrishna.s.vasudevan
      6. HBASE-8496_6.patch
        582 kB
        ramkrishna.s.vasudevan
      7. HBASE-8496_5.patch
        582 kB
        ramkrishna.s.vasudevan
      8. HBASE-8496_4.patch
        579 kB
        ramkrishna.s.vasudevan
      9. HBASE-8496_3.patch
        579 kB
        ramkrishna.s.vasudevan
      10. HBASE-8496_3.patch
        579 kB
        ramkrishna.s.vasudevan
      11. HBASE-8496_3.patch
        579 kB
        ramkrishna.s.vasudevan
      12. HBASE-8496_2.patch
        336 kB
        ramkrishna.s.vasudevan
      13. Comparison.pdf
        50 kB
        ramkrishna.s.vasudevan

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              ramkrishna.s.vasudevan
              Reporter:
              ramkrishna.s.vasudevan
            • Votes:
              0 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development