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

Have a way to set a different default compression on HCD

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Implemented
    • None
    • None
    • None
    • None

    Description

      I was exploring if there would be a nice way to set the compression by default to a different algorithm but I didn't find any that I can implement right now, dumping my ideas so that others can chime in.

      I think the best place to take it into account would be on the master's side. Basically you run a check when creating a new table to see if compression wasn't set, and if so then set it to the new default. The important thing is you don't want to replace NONE, because that might be the user's goal to set it like that.

      The main problem is that the normal HCD constructor calls the deprecated constructor that sets most of the properties to their defaults, including compression, which means that it will always be NONE instead of null.

      It appears that this constructor has been deprecated since February 2012 (https://github.com/apache/hbase/blame/0.94/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java#L292) so maybe we can remove it in the next major version and make our life easier?

      Attachments

        Activity

          People

            Unassigned Unassigned
            jdcryans Jean-Daniel Cryans
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: