Repository: ambari Updated Branches: refs/heads/branch-dev-patch-upgrade e7399fe9c -> 7a87817b8
AMBARI-19230. Ambari does not select correct heap size for HSIHS2 (smohanty) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7ec550aa Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7ec550aa Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7ec550aa Branch: refs/heads/branch-dev-patch-upgrade Commit: 7ec550aaefc3eac236933e198994bbb3bc2d573a Parents: e8a6b85 Author: Sumit Mohanty <[email protected]> Authored: Sun Dec 18 21:16:26 2016 -0800 Committer: Sumit Mohanty <[email protected]> Committed: Sun Dec 18 21:18:07 2016 -0800 ---------------------------------------------------------------------- .../HIVE/0.12.0.2.0/package/scripts/params_linux.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/7ec550aa/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py index 27fe5b9..4e5ae36 100644 --- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py +++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py @@ -404,7 +404,7 @@ start_metastore_path = format("{tmp_dir}/start_metastore_script") hadoop_heapsize = config['configurations']['hadoop-env']['hadoop_heapsize'] -if 'role' in config and config['role'] in ["HIVE_SERVER", "HIVE_METASTORE"]: +if 'role' in config and config['role'] in ["HIVE_SERVER", "HIVE_METASTORE", "HIVE_SERVER_INTERACTIVE"]: if check_stack_feature(StackFeature.HIVE_ENV_HEAPSIZE, version_for_stack_feature_checks): hive_heapsize = config['configurations']['hive-env']['hive.heapsize'] else: @@ -595,7 +595,10 @@ if has_hive_interactive: hive_interactive_env_sh_template = config['configurations']['hive-interactive-env']['content'] hive_interactive_enabled = default('/configurations/hive-interactive-env/enable_hive_interactive', False) llap_app_java_opts = default('/configurations/hive-interactive-env/llap_java_opts', '-XX:+AlwaysPreTouch {% if java_version > 7 %}-XX:+UseG1GC -XX:TLABSize=8m -XX:+ResizeTLAB -XX:+UseNUMA -XX:+AggressiveOpts -XX:MetaspaceSize=1024m -XX:InitiatingHeapOccupancyPercent=80 -XX:MaxGCPauseMillis=200{% else %}-XX:+PrintGCDetails -verbose:gc -XX:+PrintGCTimeStamps -XX:+UseNUMA -XX:+UseParallelGC{% endif %}') - hive_interactive_heapsize = config['configurations']['hive-interactive-env']['hive_heapsize'] + hive_interactive_heapsize = hive_heapsize + # Ambari upgrade may not add this config as it will force restart of HSI (stack upgrade should) + if 'hive_heapsize' in config['configurations']['hive-interactive-env']: + hive_interactive_heapsize = config['configurations']['hive-interactive-env']['hive_heapsize'] # Service check related if hive_transport_mode.lower() == "http":
