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 4D2C8E8CB for ; Mon, 18 Feb 2013 09:35:55 +0000 (UTC) Received: (qmail 11923 invoked by uid 500); 18 Feb 2013 09:35:53 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 11858 invoked by uid 500); 18 Feb 2013 09:35:53 -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 11848 invoked by uid 99); 18 Feb 2013 09:35:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2013 09:35:52 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of michael_segel@hotmail.com designates 65.55.111.91 as permitted sender) Received: from [65.55.111.91] (HELO blu0-omc2-s16.blu0.hotmail.com) (65.55.111.91) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2013 09:35:42 +0000 Received: from BLU0-SMTP192 ([65.55.111.71]) by blu0-omc2-s16.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 18 Feb 2013 01:35:21 -0800 X-EIP: [/Ve82TNkIxmC9/sWLc+Lf7+NEtcqCe/q] X-Originating-Email: [michael_segel@hotmail.com] Message-ID: Received: from [10.1.10.10] ([173.15.87.38]) by BLU0-SMTP192.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 18 Feb 2013 01:35:19 -0800 From: Michael Segel Content-Type: multipart/alternative; boundary="Apple-Mail=_9E10F466-9D2B-43C7-859A-AF2A2E680AEE" MIME-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: coprocessor enabled put very slow, help please~~~ Date: Mon, 18 Feb 2013 03:35:18 -0600 References: <78023CDA-6661-4BE1-B5FF-3762119E51A2@gmail.com> To: user@hbase.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1499) X-OriginalArrivalTime: 18 Feb 2013 09:35:20.0054 (UTC) FILETIME=[448E3960:01CE0DBB] X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_9E10F466-9D2B-43C7-859A-AF2A2E680AEE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" Why?=20 This seems like an unnecessary overhead.=20 You are writing code within the coprocessor on the server. Pessimistic = code really isn't recommended if you are worried about performance. I have to ask... by the time you have executed the code in your = co-processor, what would cause the initial write to fail?=20 On Feb 18, 2013, at 3:01 AM, Prakash Kadel = wrote: > its a local read. i just check the last param of PostCheckAndPut = indicating if the Put succeeded. Incase if the put success, i insert a = row in another table >=20 > Sincerely, > Prakash Kadel >=20 > On Feb 18, 2013, at 2:52 PM, Wei Tan wrote: >=20 >> Is your CheckAndPut involving a local or remote READ? Due to the = nature of=20 >> LSM, read is much slower compared to a write... >>=20 >>=20 >> Best Regards, >> Wei >>=20 >>=20 >>=20 >>=20 >> From: Prakash Kadel >> To: "user@hbase.apache.org" ,=20 >> Date: 02/17/2013 07:49 PM >> Subject: coprocessor enabled put very slow, help please~~~ >>=20 >>=20 >>=20 >> hi, >> i am trying to insert few million documents to hbase with mapreduce. = To=20 >> enable quick search of docs i want to have some indexes, so i tried = to use=20 >> the coprocessors, but they are slowing down my inserts. Arent the=20 >> coprocessors not supposed to increase the latency?=20 >> my settings: >> 3 region servers >> 60 maps >> each map inserts to doc table.(checkAndPut) >> regionobserver coprocessor does a postCheckAndPut and inserts some = rows to=20 >> a index table. >>=20 >>=20 >> Sincerely, >> Prakash >>=20 >=20 Michael Segel | (m) 312.755.9623 Segel and Associates --Apple-Mail=_9E10F466-9D2B-43C7-859A-AF2A2E680AEE--