You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dm...@apache.org on 2014/10/16 21:15:58 UTC
[2/2] git commit: AMBARI-7816. hive CLI not starting on HDP-2.2 when
hive engine is TEZ (dlysnichenko)
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/77f185b0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/77f185b0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/77f185b0
Branch: refs/heads/branch-1.7.0
Commit: 77f185b0c981d99a40128dafef18974ebffe8516
Parents: a410ca3
Author: Lisnichenko Dmitro <dl...@hortonworks.com>
Authored: Thu Oct 16 20:53:17 2014 +0300
Committer: Lisnichenko Dmitro <dl...@hortonworks.com>
Committed: Thu Oct 16 20:54:49 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/77f185b0/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