Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Disable bucket cache on HBase masters #1277

Merged
merged 2 commits into from
Sep 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion cookbooks/bcpc-hadoop/recipes/hbase_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@
# If HBASE bucket cache is enabled the properties from this section will be included in hbase-site.xml
#
bucketcache_size = (node['bcpc']['hadoop']['hbase_rs']['mx_dir_mem']['size'] - node['bcpc']['hadoop']['hbase_rs']['hdfs_dir_mem']['size']).floor
if node['bcpc']['hadoop']['hbase']['bucketcache']['enabled'] == true
bucketcache_enabled = node['bcpc']['hadoop']['hbase']['bucketcache']['enabled']
is_region_server = node['bcpc']['hadoop']['rs_hosts'].any? do |rs|
rs.values[0] == node['fqdn']
end

if bucketcache_enabled && is_region_server
generated_values['hbase.regionserver.global.memstore.upperLimit'] = node['bcpc']['hadoop']['hbase_rs']['memstore']['upperlimit'].to_s
generated_values['hfile.block.cache.size'] = node['bcpc']['hadoop']['hbase']['blockcache']['size'].to_s
generated_values['hbase.bucketcache.size'] = bucketcache_size
Expand Down
4 changes: 0 additions & 4 deletions cookbooks/bcpc-hadoop/recipes/hbase_env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@
node.default['bcpc']['hadoop']['hbase']['env']['HBASE_REGIONSERVER_OPTS'] =
node['bcpc']['hadoop']['hbase']['env']['HBASE_REGIONSERVER_OPTS'] +
' -XX:MaxDirectMemorySize=' + node['bcpc']['hadoop']['hbase_rs']['mx_dir_mem']['size'].to_s + 'm'

node.default['bcpc']['hadoop']['hbase']['env']['HBASE_MASTER_OPTS'] =
node['bcpc']['hadoop']['hbase']['env']['HBASE_MASTER_OPTS'] +
' -XX:MaxDirectMemorySize=' + node['bcpc']['hadoop']['hbase_master']['mx_dir_mem']['size'].to_s + 'm'
end

if node[:bcpc][:hadoop][:kerberos][:enable] == true
Expand Down