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.

Ambari's hive config references hive.metastore.heapsize - is this a real property?

avatar
Rising Star

Ambari's hive config includes an entry for "Metastore Heap Size" and the context help says this corresponds to hive.metastore.heapsize, but I can't find any other reference to this parameter in Apache or any hadoop vendor's documentation. Is this actually a parameter? Where is it set? The value we are setting in Ambari does not appear to be affecting the actual heap being used on our server.

(Ambari 2.2.2.0)

1 ACCEPTED SOLUTION

avatar

@Vincent Romeo

The hive.metastore.heapsize is not a parameter that is in a file like hive-site.xml. This value is used by Ambari for substitution into the hive-env template file. You can see this section in the text box in Ambari:

if [ "$SERVICE" = "metastore" ]; then
 export HADOOP_HEAPSIZE={{hive_metastore_heapsize}} # Setting for HiveMetastore
else
 export HADOOP_HEAPSIZE={{hive_heapsize}} # Setting for HiveServer2 and Client
fi

The {{hive_metastore_heapsize}} is where the substitution is made.

View solution in original post

3 REPLIES 3

avatar

@Vincent Romeo

The hive.metastore.heapsize is not a parameter that is in a file like hive-site.xml. This value is used by Ambari for substitution into the hive-env template file. You can see this section in the text box in Ambari:

if [ "$SERVICE" = "metastore" ]; then
 export HADOOP_HEAPSIZE={{hive_metastore_heapsize}} # Setting for HiveMetastore
else
 export HADOOP_HEAPSIZE={{hive_heapsize}} # Setting for HiveServer2 and Client
fi

The {{hive_metastore_heapsize}} is where the substitution is made.

avatar

had the same problem on IBM BigInsight 4.1

You saved my day

avatar
Rising Star

I think our hive-env template is missing the section related to setting the heapsize.... We're reaching out to support for a fresh copy of that.