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

Administrative functions for table/region maintenance

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.19.0
    • 0.19.0
    • None
    • None

    Description

      It would be useful to have some administrative functions available through HTable or HBaseAdmin. The two functions I'm thinking of right now are to force memcache flushes (on all regions, or individually specified) and to run major compactions (on all regions, or individually specified).

      One reason to have this is currently major compactions run once a day by default. The time that they run is related to when you brought up your cluster or created the tables. In my case, this has been during peak load rather than offpeak times. We have times that we run other administrative tasks like backups, cleanup, etc... during off times, and this would be a good time to also trigger major compactions and memcache flushes.

      Memcache force flushing can also be useful in the case that your cluster starts to have issues. They might be isolated to a single region or regionserver, but with lots of edits sitting in memcache and potentially unappended hlogs, you want to just flush things out to remove the possibility of losing anything.

      Attachments

        1. 1082.patch
          21 kB
          Michael Stack

        Activity

          People

            stack Michael Stack
            streamy Jonathan Gray
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: