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

HBase Shell - Add support for formatting row keys before output

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • None
    • None
    • shell
    • None

    Description

      As many HBase users use binary row keys rather than strings to optimize memory consumption displaying an escaped string in the HBase shell isn't useful (and takes a lot of screen space)
      Allowing user to provide a row key formatter as part of the scan\get commands would allow developers to display the row key in a way thats makes sense for them.

      Example:
      scan 'stats',

      { ROWFORMATTER => MyRowFormatter.new }

      The row formatter simply gets the bytes array key and formats it to a string.
      Its an easy change tomake with simple monkey-patching of the shell commands but I would be happy to see it as part of the shell itself.

      Attachments

        1. hbase-4818.patch
          3 kB
          Ben West
        2. format3.patch
          14 kB
          Ben West

        Activity

          People

            Unassigned Unassigned
            ekampf Eran Kampf
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified