Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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