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

Describe 'table' output is all on one line, could use better formatting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.98.8, 0.99.2
    • shell
    • None
    • 0.94.2-cdh4.2.1

    • Reviewed

    Description

      If you describe 'table' from the HBase shell, you get an output like this for a very simple table:

      hbase(main):023:0> describe 'movie'
      DESCRIPTION ENABLED
      {NAME => 'movie', FAMILIES => [

      {NAME => 'info', DATA_BLOCK_ENCODING => 'NONE', B true LOOMFILTER => 'NONE', REPLICATION_SCOPE => '0', VERSIONS => '3', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => '2147483647', KEEP_DELETED_CELLS => 'false', BLOCKSIZE => '65536', IN_MEMORY => 'false', ENCODE_ON_DISK => 'true', BLOCKCACH E => 'true'}

      ,

      {NAME => 'media', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'N ONE', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION => 'NONE', MIN_VERS IONS => '0', TTL => '2147483647', KEEP_DELETED_CELLS => 'false', BLOCKSIZE => '6 5536', IN_MEMORY => 'false', ENCODE_ON_DISK => 'true', BLOCKCACHE => 'true'}

      ]}
      1 row(s) in 0.0250 seconds

      Not only everything is on one row, but also it seems to be limited in width (82 chars).

      I suggest we do a line return on each column family, or format it into a JSON (lint) format, or anything more readable!

      Thanks!

      Attachments

        1. desc_output_screenshot.png
          331 kB
          Srikanth Srungarapu
        2. HBASE-10082_v2.patch
          2 kB
          Srikanth Srungarapu
        3. HBASE-10082_v3.patch
          2 kB
          Srikanth Srungarapu
        4. HBASE-10082.patch
          2 kB
          Srikanth Srungarapu

        Activity

          People

            srikanth235 Srikanth Srungarapu
            cdmaxime Maxime C Dumas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: