Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3D786A75 for ; Fri, 22 Jul 2011 00:33:21 +0000 (UTC) Received: (qmail 30442 invoked by uid 500); 22 Jul 2011 00:33:20 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 30412 invoked by uid 500); 22 Jul 2011 00:33:19 -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 30404 invoked by uid 99); 22 Jul 2011 00:33:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2011 00:33:19 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [203.66.245.11] (HELO mg.tsmc.com) (203.66.245.11) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2011 00:33:11 +0000 Received: from mailgate10.tsmc.com.tw (twmg1 [10.60.33.42]) by mg.tsmc.com (8.13.8/8.12.6) with ESMTP id p6M0WYZ9020960 for ; Fri, 22 Jul 2011 08:32:34 +0800 (CST) Received: from twhsos02.tsmc.com.tw (twhsos02.tsmc.com.tw [10.42.37.108]) by mailgate10.tsmc.com.tw (8.13.8/8.13.8) with ESMTP id p6M0WXgX002235 for ; Fri, 22 Jul 2011 08:32:34 +0800 In-Reply-To: Subject: Re: HTablePool for Reading Performance X-KeepSent: 29E69A9D:25BE4E17-482578D5:00027B0C; type=4; name=$KeepSent To: user@hbase.apache.org X-Mailer: Lotus Notes Release 7.0.4 March 23, 2009 Message-ID: From: hmchiud@tsmc.com Date: Fri, 22 Jul 2011 08:32:32 +0800 X-MIMETrack: Serialize by Router on TWHSOS02/TSMC(Release 8.5.2FP1|November 29, 2010) at 07/22/2011 08:32:33 MIME-Version: 1.0 Content-type: text/plain; charset=Big5 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I've loaded 30 oracle tables into HBase successfully. All these columns are in a single columnFamily. My java program is trying to random read a few data from the first table to the last. Like Bill of Material, my user will pass one or a few products to my application which will return each product's materials to user. For that, I try to create thread in a machine for fetching data from Hbase quickly. Each thread shares one configure. Following is my thread reading result: Thread Count duration(second) 1 69 2 97,98 3 106,117,119 10 193,193,198,203,203,207,209,212,216,217 That would be better if the duration can keep at around 70~80 while 10 threads are running. Any suggestions? Thank you very much >Our cluster with 20 machines(1U server, 4 cores, 12G RAM) >Hadoop 20 machines >Zookeeper 3 >RegionServer 10 >Hadoop version hadoop-0.20.2-cdh3u0 >HBase version hbase-0.90.1-cdh3u0 Fleming Chiu(������) Ext: 707-2260 Be Veg, Go Green, Save the Planet! jdcryans@gmail.com To Sent by: user@hbase.apache.org jdcryans@gmail.com cc Subject 2011/07/22 �W�� 05:28 Re: HTablePool for Reading Performance Please respond to user@hbase.apache.org Inline. J-D > I am trying to start multiple threads in a client to read data from Hbase. > These threads seem to share only one connection, which resulted in > increasing latency. Data on that? > HTablePool can create multiple connections, right? Multiple HTable, but they all share one connection to each RS and the queries/answers are multiplexed. > I am using two ways to scan HBASE data. > One is scanning by Key value, the other is scanning by index > (hbase-transactional-tableindexed IndexedTable) > I don't know how to adopt HTablePool for my IndexedTable. I think you just need to pass a class that implements HTableInterfaceFactory to the constructor and that creates IndexedTable instead of HTable. J-D --------------------------------------------------------------------------- TSMC PROPERTY This email communication (and any attachments) is proprietary information for the sole use of its intended recipient. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please notify the sender by replying to this email, and then delete this email and any copies of it immediately. Thank you. ---------------------------------------------------------------------------