Browse Source

HUE-8912 [hdfs] Avoid default config warning when there is no HDFS cluster

Romain 6 năm trước cách đây
mục cha
commit
970c92a8e2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      desktop/libs/hadoop/src/hadoop/conf.py

+ 1 - 1
desktop/libs/hadoop/src/hadoop/conf.py

@@ -214,7 +214,7 @@ def config_validator(user):
     res.extend(webhdfs.test_fs_configuration(cluster))
     if name == 'default':
       has_default = True
-  if not has_default:
+  if HDFS_CLUSTERS.keys() and not has_default:
     res.append(("hadoop.hdfs_clusters", "You should have an HDFS called 'default'."))
 
   # YARN_CLUSTERS