|
@@ -41,6 +41,7 @@ from settings import HUE_DESKTOP_VERSION
|
|
|
from aws.conf import is_enabled as is_s3_enabled, has_s3_access
|
|
from aws.conf import is_enabled as is_s3_enabled, has_s3_access
|
|
|
from azure.conf import is_adls_enabled, has_adls_access
|
|
from azure.conf import is_adls_enabled, has_adls_access
|
|
|
from dashboard.conf import get_engines, HAS_REPORT_ENABLED
|
|
from dashboard.conf import get_engines, HAS_REPORT_ENABLED
|
|
|
|
|
+from hadoop.conf import has_hdfs_enabled
|
|
|
from kafka.conf import has_kafka
|
|
from kafka.conf import has_kafka
|
|
|
from notebook.conf import SHOW_NOTEBOOKS, get_ordered_interpreters
|
|
from notebook.conf import SHOW_NOTEBOOKS, get_ordered_interpreters
|
|
|
|
|
|
|
@@ -1761,7 +1762,7 @@ class ClusterConfig():
|
|
|
def _get_browser(self):
|
|
def _get_browser(self):
|
|
|
interpreters = []
|
|
interpreters = []
|
|
|
|
|
|
|
|
- if 'filebrowser' in self.apps and ANALYTIC_DB not in self.cluster_type:
|
|
|
|
|
|
|
+ if has_hdfs_enabled() and 'filebrowser' in self.apps and ANALYTIC_DB not in self.cluster_type:
|
|
|
interpreters.append({
|
|
interpreters.append({
|
|
|
'type': 'hdfs',
|
|
'type': 'hdfs',
|
|
|
'displayName': _('Files'),
|
|
'displayName': _('Files'),
|
|
@@ -1770,7 +1771,7 @@ class ClusterConfig():
|
|
|
'page': '/filebrowser/' + (not self.user.is_anonymous() and 'view=' + self.user.get_home_directory() or '')
|
|
'page': '/filebrowser/' + (not self.user.is_anonymous() and 'view=' + self.user.get_home_directory() or '')
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- if is_s3_enabled() and has_s3_access(self.user) and not IS_EMBEDDED.get():
|
|
|
|
|
|
|
+ if is_s3_enabled() and 'filebrowser' in self.apps and has_s3_access(self.user) and not IS_EMBEDDED.get():
|
|
|
interpreters.append({
|
|
interpreters.append({
|
|
|
'type': 's3',
|
|
'type': 's3',
|
|
|
'displayName': _('S3'),
|
|
'displayName': _('S3'),
|
|
@@ -1779,7 +1780,7 @@ class ClusterConfig():
|
|
|
'page': '/filebrowser/view=S3A://'
|
|
'page': '/filebrowser/view=S3A://'
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- if is_adls_enabled() and has_adls_access(self.user) and ANALYTIC_DB not in self.cluster_type:
|
|
|
|
|
|
|
+ if is_adls_enabled() and 'filebrowser' in self.apps and has_adls_access(self.user) and ANALYTIC_DB not in self.cluster_type:
|
|
|
interpreters.append({
|
|
interpreters.append({
|
|
|
'type': 'adls',
|
|
'type': 'adls',
|
|
|
'displayName': _('ADLS'),
|
|
'displayName': _('ADLS'),
|