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

Shell commands do not support column qualifiers containing colon (:)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • 0.98.0, 0.96.0, 1.0.0, 1.1.0
    • None
    • shell
    • None

    Description

      The shell interprets the colon within the qualifier as a delimiter to a FORMATTER instead of part of the qualifier itself.

      Example from the mailing list:

      Hmph, I may have spoken too soon. I know I tested this at one point and
      it worked, but now I'm getting different results:

      On the new cluster, I created a duplicate test table:
      hbase(main):043:0> create 'content3',

      {NAME => 'x', BLOOMFILTER => 'NONE', REPLICATION_SCOPE => '0', VERSIONS => '3', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => '2147483647', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}

      Then I pull some data from the imported table:
      hbase(main):045:0> scan 'content',

      {LIMIT=>1, STARTROW=>'A:9223370612089311807:twtr:57013379'}

      ROW COLUMN+CELL
      ....
      A:9223370612089311807:twtr:570133798827921408
      column=x:twitter:username, timestamp=1424775595345, value=BERITA &
      INFORMASI!

      Then put it:
      hbase(main):046:0> put
      'content3','A:9223370612089311807:twtr:570133798827921408',
      'x:twitter:username', 'BERITA & INFORMASI!'

      But then when I query it, I see that I've lost the column qualifier
      ":username":
      hbase(main):046:0> scan 'content3'
      ROW COLUMN+CELL
      A:9223370612089311807:twtr:570133798827921408 column=x:twitter,
      timestamp=1432745301788, value=BERITA & INFORMASI!

      Even though I'm missing one of the qualifiers, I can at least filter on
      columns in this sample table.

      Attachments

        1. hbase-13788-v1.patch
          11 kB
          Manaswini
        2. Hbase-13788-testcases.docx
          83 kB
          Manaswini

        Issue Links

          Activity

            People

              Unassigned Unassigned
              davelatham Dave Latham
              Votes:
              3 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: