You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Tao Xiao <xi...@gmail.com> on 2014/02/11 10:18:14 UTC

What does this line mean in hbase shell?

I executed some commands in hbase's shell and got the following results:

hbase(main):014:0> list
TABLE

testtable

1 row(s) in 0.0180 seconds          ### what does "1 row(s)" mean?

hbase(main):015:0> count 'testtable'
Current count: 1000, row: row-999

1000 row(s) in 0.3300 seconds     ### indeed  we have 1000 rows in
testtable

hbase(main):017:0> create 'newtable', 'cf'
0 row(s) in 1.1450 seconds

hbase(main):018:0> put 'newtable', 'row1', 'cf:A', 'value1'
0 row(s) in 0.0120 seconds          ### what does "0 row(s)" mean?

hbase(main):019:0> put 'newtable', 'row2', 'cf:A', 'value2'
0 row(s) in 0.0080 seconds

we can see that the shell printed results ending with "xx row(s) in xxx
seconds", what does this mean ?

Re: What does this line mean in hbase shell?

Posted by Tao Xiao <xi...@gmail.com>.
Ok, I see, thanks ramkrishna.


2014-02-11 17:25 GMT+08:00 ramkrishna vasudevan <
ramkrishna.s.vasudevan@gmail.com>:

> Hi
>
> It describes the (x) rows describes the number of items retrieved to
> display in the output and xxxx seconds says the time taken for displaying
> it.
> Incase of puts as there are not rows to be retrieved and displayed the (x)
> rows remains 0, but the xxx seconds says the time it took for doing that
> operation. If the time calculation is accurate or not am not sure on that.
>  Need to see how it is calculated.
> Does this answer you question?
>
> Regards
> Ram
>
>
> On Tue, Feb 11, 2014 at 2:48 PM, Tao Xiao <xi...@gmail.com>
> wrote:
>
> > I executed some commands in hbase's shell and got the following results:
> >
> > hbase(main):014:0> list
> > TABLE
> >
> > testtable
> >
> > 1 row(s) in 0.0180 seconds          ### what does "1 row(s)" mean?
> >
> > hbase(main):015:0> count 'testtable'
> > Current count: 1000, row: row-999
> >
> > 1000 row(s) in 0.3300 seconds     ### indeed  we have 1000 rows in
> > testtable
> >
> > hbase(main):017:0> create 'newtable', 'cf'
> > 0 row(s) in 1.1450 seconds
> >
> > hbase(main):018:0> put 'newtable', 'row1', 'cf:A', 'value1'
> > 0 row(s) in 0.0120 seconds          ### what does "0 row(s)" mean?
> >
> > hbase(main):019:0> put 'newtable', 'row2', 'cf:A', 'value2'
> > 0 row(s) in 0.0080 seconds
> >
> > we can see that the shell printed results ending with "xx row(s) in xxx
> > seconds", what does this mean ?
> >
>

Re: What does this line mean in hbase shell?

Posted by ramkrishna vasudevan <ra...@gmail.com>.
Hi

It describes the (x) rows describes the number of items retrieved to
display in the output and xxxx seconds says the time taken for displaying
it.
Incase of puts as there are not rows to be retrieved and displayed the (x)
rows remains 0, but the xxx seconds says the time it took for doing that
operation. If the time calculation is accurate or not am not sure on that.
 Need to see how it is calculated.
Does this answer you question?

Regards
Ram


On Tue, Feb 11, 2014 at 2:48 PM, Tao Xiao <xi...@gmail.com> wrote:

> I executed some commands in hbase's shell and got the following results:
>
> hbase(main):014:0> list
> TABLE
>
> testtable
>
> 1 row(s) in 0.0180 seconds          ### what does "1 row(s)" mean?
>
> hbase(main):015:0> count 'testtable'
> Current count: 1000, row: row-999
>
> 1000 row(s) in 0.3300 seconds     ### indeed  we have 1000 rows in
> testtable
>
> hbase(main):017:0> create 'newtable', 'cf'
> 0 row(s) in 1.1450 seconds
>
> hbase(main):018:0> put 'newtable', 'row1', 'cf:A', 'value1'
> 0 row(s) in 0.0120 seconds          ### what does "0 row(s)" mean?
>
> hbase(main):019:0> put 'newtable', 'row2', 'cf:A', 'value2'
> 0 row(s) in 0.0080 seconds
>
> we can see that the shell printed results ending with "xx row(s) in xxx
> seconds", what does this mean ?
>