Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Where Ambari set hbase-env template variable values?

avatar
Rising Star

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

avatar

@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...

View solution in original post

2 REPLIES 2

avatar

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}

avatar

@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...