Explorar el Código

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

Romain hace 6 años
padre
commit
970c92a8e2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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