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 84BC210194 for ; Mon, 2 Jun 2014 20:06:43 +0000 (UTC) Received: (qmail 16415 invoked by uid 500); 2 Jun 2014 20:06:42 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 16347 invoked by uid 500); 2 Jun 2014 20:06:42 -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 16330 invoked by uid 99); 2 Jun 2014 20:06:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 20:06:42 +0000 X-ASF-Spam-Status: No, hits=1.2 required=5.0 tests=HTML_IMAGE_ONLY_24,HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bbeaudreault@hubspot.com designates 74.125.150.108 as permitted sender) Received: from [74.125.150.108] (HELO na6sys009bog034.obsmtp.com) (74.125.150.108) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 20:06:35 +0000 Received: from mail-vc0-f180.google.com ([209.85.220.180]) (using TLSv1) by na6sys009bob034.postini.com ([74.125.148.12]) with SMTP ID DSNKU4zZNoheS2LvpOgy2wRrDAo2kC+TbJj/@postini.com; Mon, 02 Jun 2014 13:06:15 PDT Received: by mail-vc0-f180.google.com with SMTP id hq11so3655552vcb.25 for ; Mon, 02 Jun 2014 13:06:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=1JFCyh7WBYt08cXt9EvMQxPfQdJDWLE88uCszU2SGH4=; b=WqclzBxgtiqDI3i1wwjAHtS2ywurvLWtLJ1Q+GkcODZOb8d0NzTCFUZSsKONSaXvri Y/HpFHJiNZaudvagXp7lAXEWMPfxyoPM5i5plJflkYJafZ1QyFoWssHsaDLwAulLmXB1 7dcENFx/MbZq+PuXvV0gxZFR/kWfcUz8rRMwxtp9s8BCjKSrp9ZhiYg6H85cwdFU4o5i 7xrFJyFkMI9MsHdTVdKngR7fYh7XB1yzQF1pweDzkkpjb4T0la9VqSkGretSpVl4Vn2k I1vOHGR3O+kzSQqU1rV8ALrPcWikt2f5/gkHY5D98RZzSMznkj8dKyQ/RtJY7z2CE96Q 1UEw== X-Gm-Message-State: ALoCoQmHe+8CYk4GaTpTlUfBtZ191d0pPmp1dZafRgoFr90w2BLxe3cDFUd1Ct0HuUs9ZeIgfLolRBcjsg4F70UlaizQJKyLQE7zGk0RjtqMCOQ4CNR4ec5X8ookQfBGUOksG6UGaNXS X-Received: by 10.221.24.207 with SMTP id rf15mr32341686vcb.17.1401739574448; Mon, 02 Jun 2014 13:06:14 -0700 (PDT) X-Received: by 10.221.24.207 with SMTP id rf15mr32341681vcb.17.1401739574373; Mon, 02 Jun 2014 13:06:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.98.7 with HTTP; Mon, 2 Jun 2014 13:05:54 -0700 (PDT) In-Reply-To: References: From: Bryan Beaudreault Date: Mon, 2 Jun 2014 16:05:54 -0400 Message-ID: Subject: Re: hbase block-cache scan.setCaching(false) not being respected To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a11335a8e660edb04fadfed13 X-Virus-Checked: Checked by ClamAV on apache.org --001a11335a8e660edb04fadfed13 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The Block Cache is used for more than just the scanner caching. Additionally, *hfile.block.cache.size *is a server-side config, while scan.setCaching(false) is on an RPC-level. So regardless of your setCaching value the RegionServers will continue to allocate memory to the block cache. Check out http://hbase.apache.org/book/regionserver.arch.html#block.cache.usage for more details, specifically it lists other residents of the block cache. On Mon, Jun 2, 2014 at 3: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 someth= ing that > doesn=E2=80=99t add up. See image below. It=E2=80=99s clear from the grap= hs 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 bl= ocks being > cached. > > Can anyone help me understand what we=E2=80=99re seeing? > > Thanks, > > -Matt > > [image: Inline image 1] > --001a11335a8e660edb04fadfed13--