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 94DBE10484 for ; Fri, 23 May 2014 02:59:58 +0000 (UTC) Received: (qmail 78496 invoked by uid 500); 23 May 2014 02:59:57 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 78423 invoked by uid 500); 23 May 2014 02:59:57 -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 78415 invoked by uid 99); 23 May 2014 02:59:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 02:59:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuzhihong@gmail.com designates 209.85.220.176 as permitted sender) Received: from [209.85.220.176] (HELO mail-vc0-f176.google.com) (209.85.220.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 02:59:53 +0000 Received: by mail-vc0-f176.google.com with SMTP id id10so2130725vcb.7 for ; Thu, 22 May 2014 19:59:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=v9nkGC/U0AobM0muidUVy+lwouXLPNTnNuH2vHEKYi8=; b=Qr7SO8ndTmdhG81lSZnCxydF3tXcEWpmcz5CFYP89FGlXhI9Ip15nccESuPwHdky2g Bc1oTpbLI9CGJfH6ACIUg7Xww2N6brDDD1Kp1hT8z5dWb6NKgt3f5E0WnBG+wuIOWhjr KjQ6MTE7M4nsPz0PiGNbkgX+Q6yXplzjUc/R33Pmkvi23ZiZ+oO8aDFinss+tQVR80Hq jDNlXGypkvci9czEYh6qdJ+3VZiXzODaFLmFTnRUaRJxGujKWwpGUs7Z0LyH7SRHsGA+ 6vFbmTJr98Z30xqW9OpG/j1cwonSFu8p1avy6dSIttZ8uFuUp8GzfR51NY2+cXg7Xr5f Bq2Q== MIME-Version: 1.0 X-Received: by 10.52.13.98 with SMTP id g2mr1355763vdc.46.1400813972433; Thu, 22 May 2014 19:59:32 -0700 (PDT) Received: by 10.58.228.103 with HTTP; Thu, 22 May 2014 19:59:32 -0700 (PDT) In-Reply-To: <201405231053102287376@neusoft.com> References: <201405221320007232532@neusoft.com> <201405231038402628135@neusoft.com> <201405231053102287376@neusoft.com> Date: Thu, 22 May 2014 19:59:32 -0700 Message-ID: Subject: Re: Re: CDH5 hbase client outofmemory From: Ted Yu To: "user@hbase.apache.org" , jingych Content-Type: multipart/alternative; boundary=20cf302ef54439301304fa086bfd X-Virus-Checked: Checked by ClamAV on apache.org --20cf302ef54439301304fa086bfd Content-Type: text/plain; charset=UTF-8 There're many options. https://*imgur*.com/ is one. Cheers On Thu, May 22, 2014 at 7:53 PM, jingych wrote: > Sorry. This is a image. I do not know where can i upload it. > > Could you please give me some suggestions. > > > > > jingych > > From: Ted Yu > Date: 2014-05-23 10:45 > To: user@hbase.apache.org > CC: Jean-Marc Spaggiari; user > Subject: Re: CDH5 hbase client outofmemory > The snapshot didn't go through. > > Can you put it on some website and give us the URL ? > > Cheers > > On May 22, 2014, at 7:38 PM, jingych wrote: > > > Hi, JM & everyone! > > > > Thanks for your reply! > > > > My java client, use the HTable#put(Put) method with 2M buffer to commit > rows. > > While the client running for a while, the jvisualvm shows the htable > threads increasing and the heap size increased too. > > Here is the snapshot: > > > > > > i research the implementation of the HTable#put(Put). > > I found the doPut operation is the async, and when one row success, this > will return. > > > > So, I guess when the HBase server is slower to response the put request. > > The hbase client will accumulate so many rows. > > And on the other hand, when the put operation failed, the hbase client > will retry with the recursion submit method. > > > > I think the above two is the reason caused the OOME. > > > > > > PS: > > What do you mean It's not cdh5 specific? I found it from the website > http://archive.cloudera.com/cdh5/cdh/5/hbase-0.96.1.1-cdh5.0.0/ > > Where can i get the CDH5 source code ? > > CDH5 means hbase 0.96.2? > > I'm confused with the CDH5, Apache, Phoenix ... > > What's the relationship among them. > > > > Thanks a lot! > > > > Best regards! > > > > Jingych > > > > From: Jean-Marc Spaggiari > > Date: 2014-05-23 09:33 > > To: user; jingych > > Subject: Re: CDH5 hbase client outofmemory > > Hi Jingych, > > > > This is the HBase 0.96.2 code. Not CDH5 specific. Do you have more > details on you OOME? Did you figured why it occured? > > > > JM > > > > > > 2014-05-22 1:20 GMT-04:00 jingych : > >> Hello, everyone! > >> > >> I found the CDH5 hbase client swallowed the Outofmemory exception. > >> > >> It didn't throw out, cause the program couldn't make the correct > response to process the OOM. > >> > >> Is't good to catch the client OOM? Why? > >> > >> The CDH5 hbase client process the throwable code: > >> private boolean manageError(int originalIndex, Row row, boolean > canRetry, > >> Throwable throwable, HRegionLocation > location) { > >> if (canRetry && throwable != null && throwable instanceof > DoNotRetryIOException) { > >> canRetry = false; > >> } > >> > >> byte[] region = null; > >> if (canRetry && callback != null) { > >> region = location == null ? null : > location.getRegionInfo().getEncodedNameAsBytes(); > >> canRetry = callback.retriableFailure(originalIndex, row, region, > throwable); > >> } > >> > >> if (!canRetry) { > >> if (callback != null) { > >> if (region == null && location != null) { > >> region = location.getRegionInfo().getEncodedNameAsBytes(); > >> } > >> callback.failure(originalIndex, region, row, throwable); > >> } > >> errors.add(throwable, row, location); > >> this.hasError.set(true); > >> } > >> > >> return canRetry; > >> } > >> > >> This will treat the OOM as the canRetry exception. > >> > >> Thanks! > >> > >> Best Regards! > >> > >> > >> > >> > >> jingych > >> > --------------------------------------------------------------------------------------------------- > >> Confidentiality Notice: The information contained in this e-mail and > any accompanying attachment(s) > >> is intended only for the use of the intended recipient and may be > confidential and/or privileged of > >> Neusoft Corporation, its subsidiaries and/or its affiliates. If any > reader of this communication is > >> not the intended recipient, unauthorized use, forwarding, printing, > storing, disclosure or copying > >> is strictly prohibited, and may be unlawful.If you have received this > communication in error,please > >> immediately notify the sender by return e-mail, and delete the original > message and all copies from > >> your system. Thank you. > >> > --------------------------------------------------------------------------------------------------- > > > > > --------------------------------------------------------------------------------------------------- > > Confidentiality Notice: The information contained in this e-mail and any > accompanying attachment(s) > > is intended only for the use of the intended recipient and may be > confidential and/or privileged of > > Neusoft Corporation, its subsidiaries and/or its affiliates. If any > reader of this communication is > > not the intended recipient, unauthorized use, forwarding, printing, > storing, disclosure or copying > > is strictly prohibited, and may be unlawful.If you have received this > communication in error,please > > immediately notify the sender by return e-mail, and delete the original > message and all copies from > > your system. Thank you. > > > --------------------------------------------------------------------------------------------------- > > --------------------------------------------------------------------------------------------------- > Confidentiality Notice: The information contained in this e-mail and any > accompanying attachment(s) > is intended only for the use of the intended recipient and may be > confidential and/or privileged of > Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader > of this communication is > not the intended recipient, unauthorized use, forwarding, printing, > storing, disclosure or copying > is strictly prohibited, and may be unlawful.If you have received this > communication in error,please > immediately notify the sender by return e-mail, and delete the original > message and all copies from > your system. Thank you. > > --------------------------------------------------------------------------------------------------- > --20cf302ef54439301304fa086bfd--