hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: Suggested config changes to be made
Date Tue, 08 Jun 2010 19:39:23 GMT
On Mon, Jun 7, 2010 at 5:52 PM, Daniel Einspanjer
<deinspanjer@mozilla.com> wrote:
> This output indicates that block cache is disabled on -ROOT-.  It sounds
> like it was recommended to enable this.  Is it just an alter table or is
> there anything else that needs to be done?
In 0.20.4/5 there is a little script named
bin/set_meta_block_caching.rb that you'll need to run.

Here is commentary from top of the script:

stack:0.20 Stack$ more bin/set_meta_block_caching.rb
# Set in_memory=true and blockcache=true on catalog tables.
# The .META. and -ROOT- tables can be created with caching and
# in_memory set to false.  You want them set to true so that
# these hot tables make it into cache.  To see if the
# .META. table has BLOCKCACHE set, in the shell do the following:
#   hbase> scan '-ROOT-'
# Look for the 'info' column family.  See if BLOCKCACHE => 'true'?
# If not, run this script and it will set the value to true.
# Setting cache to 'true' will only take effect on region restart
# of if you close the .META. region -- *disruptive* -- and have
# it deploy elsewhere.  This script runs against an up and running
# hbase instance.
# To see usage for this script, run:
#  ${HBASE_HOME}/bin/hbase org.jruby.Main set_meta_block_caching.rb


View raw message