hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: How can I use shell to view multiple versions?
Date Wed, 20 Jul 2011 14:34:20 GMT
If you look at help of get command, you would see:
  hbase> get 't1', 'r1', {COLUMN => 'c1', TIMERANGE => [ts1, ts2], VERSIONS
=> 4}

On Wed, Jul 20, 2011 at 7:09 AM, 勇胡 <yongyong313@gmail.com> wrote:

> Hello,
>
> I created a table named 'score', and I issue put command twice:
>
> put 'score','tom','course:math','1.2'
> put 'score','tom','course:math','1.3'
>
> Now the cell has two data versions, I want to read these two versions, so I
> issue a command,
>
> get 'score', 'tom', {COLUMN=>'course:math',VERSION=>2}
>
> But I can only get the newest data version 1.3, if I also want to see the
> previous value, how can I do this?
>
> By the way, I didn't change the version value when I created the table.
>
> Thanks
>
> Yong
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message