Repository: ambari Updated Branches: refs/heads/branch-1.7.0 a410ca3b8 -> 77f185b0c refs/heads/trunk 799a0d54a -> ad9928969
AMBARI-7816. hive CLI not starting on HDP-2.2 when hive engine is TEZ (dlysnichenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ad992896 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ad992896 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ad992896 Branch: refs/heads/trunk Commit: ad99289698452fe168e203d6423d9850dcc83576 Parents: 799a0d5 Author: Lisnichenko Dmitro <[email protected]> Authored: Thu Oct 16 20:53:17 2014 +0300 Committer: Lisnichenko Dmitro <[email protected]> Committed: Thu Oct 16 20:54:19 2014 +0300 ---------------------------------------------------------------------- .../HDP/2.0.6/services/HIVE/package/scripts/install_jars.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/ad992896/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/install_jars.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/install_jars.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/install_jars.py index 67d97f5..08a0a50 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/install_jars.py +++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/install_jars.py @@ -53,7 +53,7 @@ def install_tez_jars(): app_dir_path = None lib_dir_path = None - if len(destination_hdfs_dirs) > 1: + if len(destination_hdfs_dirs) > 0: for path in destination_hdfs_dirs: if 'lib' in path: lib_dir_path = path @@ -99,6 +99,9 @@ def get_tez_hdfs_dir_paths(tez_lib_uris = None): lib_dir_path = path.replace(hdfs_path_prefix, '') lib_dir_path = lib_dir_path if lib_dir_path.endswith(os.sep) else lib_dir_path + os.sep lib_dir_paths.append(lib_dir_path) + else: + lib_dir_path = path.replace(hdfs_path_prefix, '') + lib_dir_paths.append(os.path.dirname(lib_dir_path)) pass pass
