Browse Source

HUE-8330 [cluster] Do not error when browsing table data

Romain Rigaux 7 years ago
parent
commit
e7b7aec959

+ 2 - 2
apps/beeswax/src/beeswax/server/dbms.py

@@ -89,8 +89,8 @@ def get_query_server_config(name='beeswax', server=None, cluster=None):
     kerberos_principal = hive_site.get_hiveserver2_kerberos_principal(HIVE_SERVER_HOST.get())
 
     query_server = {
-        'server_name': name if not cluster else '%s-%s' % (name, cluster_config.get('id')),
-        'server_host': HIVE_SERVER_HOST.get() if not cluster else cluster_config.get('server_host'),
+        'server_name': name if not cluster_config else '%s-%s' % (name, cluster_config.get('id')),
+        'server_host': HIVE_SERVER_HOST.get() if not cluster_config else cluster_config.get('server_host'),
         'server_port': HIVE_SERVER_PORT.get(),
         'principal': kerberos_principal,
         'http_url': '%(protocol)s://%(host)s:%(port)s/%(end_point)s' % {

+ 1 - 1
desktop/libs/notebook/src/notebook/connectors/altus_adb.py

@@ -66,7 +66,7 @@ class AltusAdbApi(Api):
 
 
   def get_log(self, notebook, snippet, startFrom=0, size=None):
-    return 'Running...'
+    return '...'
 
 
   def progress(self, snippet, logs):