Browse Source

HUE-8330 [core] For multi cluster demo

Romain Rigaux 7 years ago
parent
commit
6d309013f5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      desktop/core/src/desktop/conf.py

+ 2 - 2
desktop/core/src/desktop/conf.py

@@ -1597,7 +1597,7 @@ def get_clusters(user):
 
 
   # Get core standalone config if there
   # Get core standalone config if there
   apps = appmanager.get_apps_dict(user)
   apps = appmanager.get_apps_dict(user)
-  if 'beeswax' in apps and not IS_MULTICLUSTER_ONLY.get():
+  if 'beeswax' in apps: # and not IS_MULTICLUSTER_ONLY.get():
     from beeswax.conf import HIVE_SERVER_HOST
     from beeswax.conf import HIVE_SERVER_HOST
     clusters.append(
     clusters.append(
       (CLUSTER_ID.get(), {
       (CLUSTER_ID.get(), {
@@ -1619,7 +1619,7 @@ def get_clusters(user):
       'type': cluster_config[i].TYPE.get(),
       'type': cluster_config[i].TYPE.get(),
       'interface': cluster_config[i].INTERFACE.get() or 'hive',
       'interface': cluster_config[i].INTERFACE.get() or 'hive',
       'server_host': cluster_config[i].SERVER_HOST.get()
       'server_host': cluster_config[i].SERVER_HOST.get()
-    }) for i in cluster_config
+    }) for i in cluster_config if cluster_config[i].NAME.get() != 'default'
   ])
   ])
 
 
   return OrderedDict(clusters)
   return OrderedDict(clusters)