Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Where Ambari set hbase-env template variable values?

SOLVED Go to solution
Highlighted

Where Ambari set hbase-env template variable values?

Contributor

inside Ambari--> Hbase conf --> hbase-env template, there are variables such as "hbase_max_direct_memory_size", "regionserver_heapsize", where they are defined or where these values are set?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Where Ambari set hbase-env template variable values?

@rxu@hortonworks.com these values are stored in /etc/hbase/conf/hbase-env.sh, I would strongly recommend changing these values from Ambari. Below is reference doc for the same.

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_Sys_Admin_Guides/content/ref-db219cd6-c58...

2 REPLIES 2

Re: Where Ambari set hbase-env template variable values?

I believe its /etc/hbase/conf/hbase-env.sh (which is a pointer to /usr/hdp/current/hbase-client/conf/hbase-env.sh)

I see another version of this file under /usr/hdp/current/hbase-regionserver/conf/hbase-env.sh which seems to control the region server setting

 diff /etc/hbase/conf.install/hbase-env.sh /etc/hbase/conf/hbase-env.sh
8c8
< export HBASE_CONF_DIR=${HBASE_CONF_DIR:-/usr/hdp/current/hbase-client/conf}
---
> export HBASE_CONF_DIR=${HBASE_CONF_DIR:-/usr/hdp/current/hbase-regionserver/conf}

Re: Where Ambari set hbase-env template variable values?

@rxu@hortonworks.com these values are stored in /etc/hbase/conf/hbase-env.sh, I would strongly recommend changing these values from Ambari. Below is reference doc for the same.

http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_Sys_Admin_Guides/content/ref-db219cd6-c58...