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

Support a default converter for data read shell commands

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • shell
    • None
    • Reviewed

    Description

      The get and scan shell commands have the ability to specify some complicated syntax on how to encode the bytes read from HBase on a per-column basis. By default, bytes falling outside of a limited range of ASCII are just printed as hex.

      It seems like the intent of these converts was to support conversion of certain numeric columns as a readable string (e.g. 1234).

      However, if non-ascii encoded bytes are stored in the table (e.g. UTF-8 encoded bytes), we may want to treat all data we read as UTF-8 instead (e.g. if row+column+value are in Chinese). It would be onerous to require users to enumerate every column they're reading to parse as UTF-8 instead of the limited ascii range. We can provide an option to encode all values retrieved by the command.

      Attachments

        1. HBASE-18067.001.patch
          16 kB
          Josh Elser
        2. HBASE-18067.002.patch
          16 kB
          Josh Elser
        3. HBASE-18067.003.patch
          16 kB
          Josh Elser

        Issue Links

          Activity

            People

              elserj Josh Elser
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: