Ver Fonte

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

Romain há 6 anos atrás
pai
commit
970c92a8e2
1 ficheiros alterados com 1 adições e 1 exclusões
  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