Repository: ambari Updated Branches: refs/heads/branch-2.4 678877dcd -> d1462e117
AMBARI-17431 - Ambari Is Initializing the Metastore Using the Wrong schematool Binary on HDP 2.5 (jonathanhurley) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d1462e11 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d1462e11 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d1462e11 Branch: refs/heads/branch-2.4 Commit: d1462e1179f0d80c0f46ffee20f9a8eead0a4339 Parents: 678877d Author: Jonathan Hurley <[email protected]> Authored: Fri Jun 24 15:39:39 2016 -0400 Committer: Jonathan Hurley <[email protected]> Committed: Sat Jun 25 21:53:40 2016 -0400 ---------------------------------------------------------------------- .../HIVE/0.12.0.2.0/package/scripts/params_linux.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/d1462e11/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 2afee3b..17f7380 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 @@ -99,10 +99,15 @@ hive_user_home_dir = "/home/hive" hive_server2_hive2_dir = None hive_server2_hive2_lib = None if check_stack_feature(StackFeature.HIVE_SERVER_INTERACTIVE, stack_version_unformatted): - hive_schematool_ver_bin = format('{stack_root}/{version}/hive2/bin') - hive_schematool_bin = format('{stack_root}/current/{component_directory}/bin') + # the name of the hiveserver2-hive2 component hive_server2_hive2_component = status_params.SERVER_ROLE_DIRECTORY_MAP["HIVE_SERVER_INTERACTIVE"] + # when using the version, we can just specify the component as "hive2" + hive_schematool_ver_bin = format('{stack_root}/{version}/hive2/bin') + + # use the schematool which ships with hive2 + hive_schematool_bin = format('{stack_root}/current/{hive_server2_hive2_component}/bin') + # <stack-root>/<version>/hive2 (as opposed to <stack-root>/<version>/hive) hive_server2_hive2_dir = format('{stack_root}/current/{hive_server2_hive2_component}')
