Browse Source

HUE-8888 [hive] Skip warehouse path config check when no FS configured

Romain 6 năm trước cách đây
mục cha
commit
6652e152a2
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      apps/hive/src/hive/conf.py

+ 2 - 1
apps/hive/src/hive/conf.py

@@ -67,7 +67,8 @@ def config_validator(user):
     from desktop.lib.fsmanager import get_filesystem
     warehouse = beeswax.hive_site.get_metastore_warehouse_dir()
     fs = get_filesystem()
-    fs.do_as_superuser(fs.stats, warehouse)
+    if fs:
+      fs.do_as_superuser(fs.stats, warehouse)
   except Exception:
     msg = 'Failed to access Hive warehouse: %s'
     LOG.exception(msg % warehouse)