Forráskód Böngészése

AMBARI-5156. Hive CLI using Tez runtime does not start by throwing HDFS exception. Minor fix. (swagle)

Siddharth Wagle 11 éve
szülő
commit
9916f42c62

+ 3 - 2
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