You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Donal Zang <za...@ihep.ac.cn> on 2010/12/03 14:58:46 UTC

how to see how many rows in each node?

RT.
Is there any command or api?

Thanks!



Re: how to see how many rows in each node?

Posted by Edward Capriolo <ed...@gmail.com>.
On Fri, Dec 3, 2010 at 12:53 PM, Robert Coli <rc...@digg.com> wrote:
> On 12/3/10 6:09 AM, Jonathan Ellis wrote:
>>
>> Divide space used by average row size from cfstats
>>
>> On Fri, Dec 3, 2010 at 7:58 AM, Donal Zang<za...@ihep.ac.cn>  wrote:
>>>
>>> RT.
>>> Is there any command or api?
>
> In 0.6.x :
>
> strings /path/to/cassandra/data/Keyspace/*-Index.db | wc -l
>
> =Rob
>
>
>

7.0 Has an estimate keys function available somewhere inside JConsole.

Re: how to see how many rows in each node?

Posted by Robert Coli <rc...@digg.com>.
On 12/3/10 6:09 AM, Jonathan Ellis wrote:
> Divide space used by average row size from cfstats
>
> On Fri, Dec 3, 2010 at 7:58 AM, Donal Zang<za...@ihep.ac.cn>  wrote:
>> RT.
>> Is there any command or api?
In 0.6.x :

strings /path/to/cassandra/data/Keyspace/*-Index.db | wc -l

=Rob



Re: how to see how many rows in each node?

Posted by Jonathan Ellis <jb...@gmail.com>.
Divide space used by average row size from cfstats

On Fri, Dec 3, 2010 at 7:58 AM, Donal Zang <za...@ihep.ac.cn> wrote:
> RT.
> Is there any command or api?
>
> Thanks!
>
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com