You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sw...@apache.org on 2014/03/21 01:39:48 UTC
git commit: AMBARI-5156. Hive CLI using Tez runtime does not start by
throwing HDFS exception. Minor fix. (swagle)
Repository: ambari
Updated Branches:
refs/heads/trunk 2eda4d31b -> 9916f42c6
AMBARI-5156. Hive CLI using Tez runtime does not start by throwing HDFS exception. Minor fix. (swagle)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9916f42c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9916f42c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9916f42c
Branch: refs/heads/trunk
Commit: 9916f42c6214521df1c7f4f5a93c93d9f7ff3c5d
Parents: 2eda4d3
Author: Siddharth Wagle <sw...@hortonworks.com>
Authored: Thu Mar 20 17:38:33 2014 -0700
Committer: Siddharth Wagle <sw...@hortonworks.com>
Committed: Thu Mar 20 17:38:40 2014 -0700
----------------------------------------------------------------------
.../HDP/2.0.6/services/HIVE/package/scripts/hive_server.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/9916f42c/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_server.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_server.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_server.py
index e5a86b2..a1a9256 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_server.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_server.py
@@ -103,8 +103,9 @@ class HiveServer(Script):
def find_hive_exec_jar_path(self, hive_lib_dir):
if os.path.exists(hive_lib_dir) and os.path.isdir(hive_lib_dir):
for file in os.listdir(hive_lib_dir):
- if fnmatch.fnmatch(file, 'hive-exec*.jar') and not os.path.islink(file):
- return os.path.join(hive_lib_dir, file)
+ file_path = os.path.join(hive_lib_dir, file)
+ if fnmatch.fnmatch(file, 'hive-exec*.jar') and not os.path.islink(file_path):
+ return file_path
pass
pass