From user-return-14220-apmail-hbase-user-archive=hbase.apache.org@hbase.apache.org Fri Dec 03 00:52:37 2010 Return-Path: Delivered-To: apmail-hbase-user-archive@www.apache.org Received: (qmail 8928 invoked from network); 3 Dec 2010 00:52:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Dec 2010 00:52:37 -0000 Received: (qmail 32318 invoked by uid 500); 3 Dec 2010 00:52:35 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 32179 invoked by uid 500); 3 Dec 2010 00:52:35 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 32171 invoked by uid 99); 3 Dec 2010 00:52:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 00:52:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of saint.ack@gmail.com designates 209.85.161.41 as permitted sender) Received: from [209.85.161.41] (HELO mail-fx0-f41.google.com) (209.85.161.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 00:52:30 +0000 Received: by fxm13 with SMTP id 13so6374798fxm.14 for ; Thu, 02 Dec 2010 16:52:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=amw6AOSkeQkWRmZYrpgbeWsHA7Jc48kCNGZegu8uZPA=; b=Q7Wj+To931NjPExOJErtk4k3DOl+Pal0OCrmx1ufx4KOIVjBdZst9So5fUrgeW9DpG bKM9ha8RUbeVzq0ghby0SbE4xMwaoNhsYiTwxANSnJ4QIAV280H15d4yOoQt9hYrvOFu QCUybgKHE26aE6fmHO2059RHp/emx5SBPLAVQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=tID9rPUG2zj6fgEmBLCtLueK/TP1+H8CS3KYhZhdhlCyYh6/D80SHpsLLQsZ9kZs+i q3zQa+lEdLu/gBPJWMxUpIrcZTduh242YXalZCNCbV9njyd6p1OxWijqh2fQrBUo4v/7 MUgcdvKJLXEXcu72l/aXu7XfxQ4jfw8YSqItQ= MIME-Version: 1.0 Received: by 10.223.107.141 with SMTP id b13mr540762fap.86.1291337529632; Thu, 02 Dec 2010 16:52:09 -0800 (PST) Sender: saint.ack@gmail.com Received: by 10.223.83.202 with HTTP; Thu, 2 Dec 2010 16:52:09 -0800 (PST) In-Reply-To: References: <321C2E54215EEB41A581FDD9DAECBC5DFCB2B302@IRV1EXMB01.eLiberation.com> Date: Thu, 2 Dec 2010 16:52:09 -0800 X-Google-Sender-Auth: DDhJn7ltywLYFD0FX7pR75_B5Aw Message-ID: Subject: Re: Quick way to find the number of rows in a Table From: Stack To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable What Michael said. Run the rowcounter M/R job: Type: ./bin/hadoop jar hbase.jar ... to learn more, read http://hbase.apache.org/docs/r0.89.20100924/apidocs/org/apache/hadoop/hbase= /mapreduce/package-summary.html#package_description St.Ack On Thu, Dec 2, 2010 at 4:10 PM, Michael Segel w= rote: > > The quickest way is a m/r job. > >> From: phaidinyak@local.com >> To: user@hbase.apache.org >> Date: Thu, 2 Dec 2010 16:02:44 -0800 >> Subject: Quick way to find the number of rows in a Table >> >> Hi >> =A0 =A0I am going to have a process running that will add rows to a tabl= e. The row id is just a counter of the number of rows inserted. Is there a = quick way to programmatically find out the number of rows in a table so whe= n I start adding rows the count isn't disrupted? Also, is there a better wa= y to assign a row Id? >> >> Thanks >> >> -Pete >