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 DB88310AC8 for ; Mon, 2 Jun 2014 23:02:47 +0000 (UTC) Received: (qmail 31224 invoked by uid 500); 2 Jun 2014 23:02:45 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 31154 invoked by uid 500); 2 Jun 2014 23:02:45 -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 31143 invoked by uid 99); 2 Jun 2014 23:02:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 23:02:45 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of matvey1414@gmail.com designates 209.85.220.179 as permitted sender) Received: from [209.85.220.179] (HELO mail-vc0-f179.google.com) (209.85.220.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 23:02:42 +0000 Received: by mail-vc0-f179.google.com with SMTP id ij19so1445058vcb.10 for ; Mon, 02 Jun 2014 16:02:18 -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=zDvgKYccrS5Yee2jcFWxEvEqhe83ObRoQkGFW4MDxQM=; b=LlzTDBjepD1z1uIZQhUvKEdfd+MWPPpoeY2CnM9AEtclkXIEelbZ/nDtQFABJC46Wz fnn1hn+0zPz/rJlB9dJdYbUBAw/6Z8PZ4ZNBgacn3N/wxH2OvFrFpoFinil2jx66uHGp 88obzJ/8oLWIq/ISztBiqzGrGr4lgcFS7uQue3Mr6fSOQleyLA9wn0vdZhMUd1MVBzBp D8BgZqRJT1BFgmnMGIxxdcvKrqsvaH5B7Wji+Kw7AYN6zZKSIKdAZPvLEEUdCp7j374y Nnn7teRz6nyHen7N5IDHU7WuRL9U3cK6vzXp2cXxXk6vyIhCuFnpk/FujwrT+DPY7Pgz 2Bng== MIME-Version: 1.0 X-Received: by 10.52.12.129 with SMTP id y1mr2898746vdb.59.1401750138716; Mon, 02 Jun 2014 16:02:18 -0700 (PDT) Received: by 10.52.171.14 with HTTP; Mon, 2 Jun 2014 16:02:18 -0700 (PDT) In-Reply-To: References: Date: Mon, 2 Jun 2014 19:02:18 -0400 Message-ID: Subject: Re: hbase block-cache scan.setCaching(false) not being respected From: Matt K To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=20cf3033471515075d04fae263b8 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3033471515075d04fae263b8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, thanks for responses. Ted - when I said "scan.setCaching", I meant "scan.setCacheBlocks(false)". That's what I get for not copying/pasting directly from code :) I added a link to the graphs here: https://drive.google.com/file/d/0B3ZQ0nMNMFxCOHZNZVFsWEhCOUU/edit?usp=3Dsha= ring Bryan - I believe you're right, but wanted to confirm. Thanks, -Matt On Mon, Jun 2, 2014 at 4:09 PM, Ted Yu wrote: > Have you added the following when passing Scan to your job ? > > scan.setCacheBlocks(false); > > BTW image didn't go through. > Consider putting image on third-party site. > > On Mon, Jun 2, 2014 at 12:55 PM, Matt K wrote: > > > Hi all, > > > > We are running a number of Map/Reduce jobs on top of HBase. We are not > > using HBase for any of its realtime capabilities, only for > > batch-processing. So we aren't doing lookups, just scans. > > > > Each one of our jobs has *scan.setCaching(false)* to turn off > > block-caching, since each block will only be accessed once. > > > > We recently started using Cloudera Manager, and I=E2=80=99m seeing some= thing that > > doesn=E2=80=99t add up. See image below. It=E2=80=99s clear from the gr= aphs that Block > > Cache is being used currently, and blocks are being cached and evicted. > > > > We do have *hfile.block.cache.size* set to 0.4 (default), but my > > understanding is that the jobs setting scan.setCaching(false) should > > override this. Since it=E2=80=99s set in every job, there should be no = blocks > being > > cached. > > > > Can anyone help me understand what we=E2=80=99re seeing? > > > > Thanks, > > > > -Matt > > > > [image: Inline image 1] > > > --=20 www.calcmachine.com - easy online calculator. --20cf3033471515075d04fae263b8--