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

Use TableDescriptor to replace HTableDescriptor in hbase-shell module

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 3.0.0-alpha-1
    • shell
    • None
    • Hide
      Removes HBase::Admin.hcd and HBase::Admin.update_htd_from_arg from hbase-shell. Removes 8 constants from HBaseAdmin in the hbase-shell module: CACHE_DATA_IN_L1, COMPARATOR, COMPARATOR_IGNORE_REPLICATION, ENCODE_ON_DISK, IS_MOB_BYTES, LENGTH, MOB_COMPACT_PARTITION_POLICY_BYTES, MOB_THRESHOLD_BYTES.
      Show
      Removes HBase::Admin.hcd and HBase::Admin.update_htd_from_arg from hbase-shell. Removes 8 constants from HBaseAdmin in the hbase-shell module: CACHE_DATA_IN_L1, COMPARATOR, COMPARATOR_IGNORE_REPLICATION, ENCODE_ON_DISK, IS_MOB_BYTES, LENGTH, MOB_COMPACT_PARTITION_POLICY_BYTES, MOB_THRESHOLD_BYTES.

    Description

      HTableDescriptor is deprecated as of release 2.0.0, and will be removed in 3.0.0. This patch replaces all usages of HTableDescriptor and HColumnDescriptor in the hbase-shell module so that HTableDescriptor can be removed.

      There a few other consequences of this change:

      • Ruby methods relating to HTableDescriptor and HColumnDescriptor have been removed. This is noted in "Release Note" on this issue.
      • We no longer import constants from HTableDescriptor and HColumnDescriptor into the ruby HBaseConstants module. Instead, we import them from ColumnFamilyDescriptorBuilder and TableDescriptorBuilder.

      Attachments

        1. HBaseConstants-cf2aa593e590133b0c76d3723b4074b28b55dcc9.txt
          1 kB
          Elliot Miller
        2. HBaseConstants-diff.txt
          1 kB
          Elliot Miller
        3. HBaseConstants-b5563432922268c7a16deacbb51bfba89c0a2aba.txt
          2 kB
          Elliot Miller
        4. HBASE-20819.branch-2.002.patch
          28 kB
          Xiaolin Ha
        5. HBASE-20819.branch-2.001.patch
          30 kB
          Xiaolin Ha

        Issue Links

          Activity

            People

              bitoffdev Elliot Miller
              Xiaolin Ha Xiaolin Ha
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: