|
|
@@ -174,7 +174,6 @@ class HS2Api(Api):
|
|
|
}
|
|
|
|
|
|
if not properties:
|
|
|
-
|
|
|
config = None
|
|
|
if USE_DEFAULT_CONFIGURATION.get():
|
|
|
config = DefaultConfiguration.objects.get_configuration_for_user(app=lang, user=self.user)
|
|
|
@@ -829,7 +828,7 @@ DROP TABLE IF EXISTS `%(table)s`;
|
|
|
def _get_impala_server_url(self, session):
|
|
|
impala_settings = session.get_formatted_properties()
|
|
|
http_addr = next((setting['value'] for setting in impala_settings if setting['key'].lower() == 'http_addr'), None)
|
|
|
- return http_addr
|
|
|
+ return ('https://' if get_webserver_certificate_file() else 'http://') + http_addr
|
|
|
|
|
|
|
|
|
def _get_impala_query_profile(self, server_url, query_id):
|