Browse Source

[jobbrowser] Show Hive Query Browser even if yarn not configured

As the query data does not necessary comes from YARN but also from
the Query Processor DB.
Romain Rigaux 5 years ago
parent
commit
371e1d4d1c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      desktop/core/src/desktop/models.py

+ 3 - 2
desktop/core/src/desktop/models.py

@@ -1980,9 +1980,10 @@ class ClusterConfig(object):
       })
       })
 
 
     if 'jobbrowser' in self.apps:
     if 'jobbrowser' in self.apps:
-      from hadoop.cluster import get_default_yarncluster # Circular loop
+      from hadoop.cluster import get_default_yarncluster  # Circular loop
+      from jobbrowser.conf import ENABLE_HIVE_QUERY_BROWSER
 
 
-      if get_default_yarncluster():
+      if get_default_yarncluster() or ENABLE_HIVE_QUERY_BROWSER.get():
         interpreters.append({
         interpreters.append({
           'type': 'yarn',
           'type': 'yarn',
           'displayName': _('Jobs'),
           'displayName': _('Jobs'),