HBase
  1. HBase
  2. HBASE-4818

HBase Shell - Add support for formatting row keys before output

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: shell
    • Labels:
      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.

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

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            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

                Development