The LLAP editor does not work when you assign a value of over 0 to the max_number_of_sessions. There is a bug in hiveserver2.py file that it find an incorrect session id that belongs to a regular HS2 session and tries to use that for LLAP. Then it throws the exception I mentioned in my previous post.
--
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+u...@cloudera.org.
def _get_session_by_id(self, notebook, type='hive'):
session = self._get_session(notebook, type)
if session:
session_id = session.get('id')
if session_id:
filters = {'id': session_id, 'application': 'beeswax' if type == 'hive' else type}
if not is_admin(self.user):
filters['owner'] = self.user
return Session.objects.get(**filters)
Traceback (most recent call last):
File "/usr/hdp/current/hue/desktop/libs/notebook/src/notebook/decorators.py", line 114, in wrapper
return f(*args, **kwargs)
File "/usr/hdp/current/hue/desktop/libs/notebook/src/notebook/api.py", line 222, in execute
response = _execute_notebook(request, notebook, snippet)
File "/usr/hdp/current/hue/desktop/libs/notebook/src/notebook/api.py", line 153, in _execute_notebook
response['handle'] = interpreter.execute(notebook, snippet)
File "/usr/hdp/current/hue/desktop/libs/notebook/src/notebook/connectors/hiveserver2.py", line 98, in decorator
return func(*args, **kwargs)
File "/usr/hdp/current/hue/desktop/libs/notebook/src/notebook/connectors/hiveserver2.py", line 294, in execute
_session = self._get_session_by_id(notebook, snippet['type'])
File "/usr/hdp/current/hue/desktop/libs/notebook/src/notebook/connectors/hiveserver2.py", line 675, in _get_session_by_id
ss = Session.objects.get(**filters)
File "/usr/hdp/current/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/hdp/current/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/db/models/query.py", line 380, in get
self.model._meta.object_name
DoesNotExist: Session matching query does not exist.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-...@cloudera.org.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+u...@cloudera.org.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-...@cloudera.org.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+u...@cloudera.org.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-...@cloudera.org.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+u...@cloudera.org.