Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8496

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

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: 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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: