소스 검색

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

Siddharth Wagle 11 년 전
부모
커밋
9916f42c62
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_server.py

+ 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