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

HFile tool should implement Tool, disable blockcache by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.99.0, 0.98.7
    • HFile
    • None
    • HFileTool now accepts configuration overrides in the usual way. Blockcache is disabled by default.

    Description

      I tried using bin/hbase hfile in a memory-constrained environment. It crashed while trying to instantiate a blockcache. Went to override the configuration and found I couldn't.

      Refactor HFile to remove main(), put implementation entirely in HFilePrettyPrinter. Said class now extends Configured and implements Tool so configs can be overridden on cli. Also disabled blockcache by default.

      Attachments

        1. HBASE-11845.00.patch
          7 kB
          Nick Dimiduk
        2. HBASE-11845.00-0.98.patch
          7 kB
          Nick Dimiduk
        3. HBASE-11845.01.patch
          7 kB
          Nick Dimiduk
        4. HBASE-11845.01-0.98.patch
          7 kB
          Nick Dimiduk
        5. HBASE-11845-addendum.patch
          2 kB
          Nick Dimiduk

        Activity

          People

            ndimiduk Nick Dimiduk
            ndimiduk Nick Dimiduk
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: