HUE 4.7: schedule jobbrowser api2 error

After upgrade from HUE 4.6 to 4.7, migrating and exporting the previously working configs, when trying to access the jobbrowser -> schedules view, the following error occurs:

File “/usr/local/hue/desktop/core/src/desktop/lib/rest/resource.py”, line 122, in _invoke
resp_content = smart_unicode(resp.content, errors=‘replace’)
AttributeError: ‘NoneType’ object has no attribute ‘content’
[19/May/2020 01:21:02 +0300] api2 ERROR Error running <function jobs at 0x7f6c77dd0d70>
Traceback (most recent call last):
File “/usr/local/hue/apps/jobbrowser/src/jobbrowser/api2.py”, line 38, in decorator
return func(*args, **kwargs)
File “/usr/local/hue/apps/jobbrowser/src/jobbrowser/api2.py”, line 58, in jobs
jobs = get_api(request.user, interface, cluster=cluster).apps(filters)
File “/usr/local/hue/apps/jobbrowser/src/jobbrowser/apis/schedule_api.py”, line 51, in apps
jobs = oozie_api.get_coordinators(**kwargs)
File “/usr/local/hue/desktop/libs/liboozie/src/liboozie/oozie_api.py”, line 133, in get_coordinators
return self.get_jobs(‘coord’, offset, cnt, filters)
File “/usr/local/hue/desktop/libs/liboozie/src/liboozie/oozie_api.py”, line 120, in get_jobs
resp = self._root.get(‘jobs’, params)
File “/usr/local/hue/desktop/core/src/desktop/lib/rest/resource.py”, line 157, in get
return self.invoke(“GET”, relpath, params, headers=headers, allow_redirects=True, clear_cookies=clear_cookies)
File “/usr/local/hue/desktop/core/src/desktop/lib/rest/resource.py”, line 87, in invoke
log_response=log_response
File “/usr/local/hue/desktop/core/src/desktop/lib/rest/resource.py”, line 114, in _invoke
clear_cookies=clear_cookies
File “/usr/local/hue/desktop/core/src/desktop/lib/rest/http_client.py”, line 217, in execute
resp = getattr(self.session, http_method.lower())(url, **request_kwargs)
File “/usr/local/hue/build/env/lib/python2.7/site-packages/requests-2.23.0-py2.7.egg/requests/sessions.py”, line 543, in get
return self.request(‘GET’, url, **kwargs)
File “/usr/local/hue/build/env/lib/python2.7/site-packages/requests-2.23.0-py2.7.egg/requests/sessions.py”, line 530, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/hue/build/env/lib/python2.7/site-packages/requests-2.23.0-py2.7.egg/requests/sessions.py”, line 650, in send
r = dispatch_hook(‘response’, hooks, r, **kwargs)
File “/usr/local/hue/build/env/lib/python2.7/site-packages/requests-2.23.0-py2.7.egg/requests/hooks.py”, line 31, in dispatch_hook
hook_data = hook(hook_data, **kwargs)
File "/usr/local/hue/build/env/lib/python2.7/site-packages/requests_kerberos-0.12.0-py2.7.egg/requests_kerberos/kerberos
.py", line 427, in handle_response
r = self.handle_401(response, **kwargs)
File "/usr/local/hue/build/env/lib/python2.7/site-packages/requests_kerberos-0.12.0-py2.7.egg/requests_kerberos/kerberos
.py", line 298, in handle_401
r = self.authenticate_user(response, **kwargs)
File "/usr/local/hue/build/env/lib/python2.7/site-packages/requests_kerberos-0.12.0-py2.7.egg/requests_kerberos/kerberos
.py", line 273, in authenticate_user
auth_header = self.generate_request_header(response, host)
File "/usr/local/hue/build/env/lib/python2.7/site-packages/requests_kerberos-0.12.0-py2.7.egg/requests_kerberos/kerberos
.py", line 220, in generate_request_header
gssflags=gssflags, principal=self.principal)
TypeError: function takes at most 2 arguments (3 given)

Does this imply an incorrect setup/configuration from our side, or could this be fixed by adjusting the functions in question? I will add that with 4.6 this worked without problems.

This is a bug https://github.com/cloudera/hue/issues/1101

There was also other JavaScript bugs in the Query Browser fixed.

Those went into
https://issues.cloudera.org/browse/HUE-9356 release 4.7.1 and https://docs.gethue.com/releases/release-notes-4.7.0/ will have the URL https://cdn.gethue.com/downloads/hue-4.7.1.tgz tomorrow

1 Like

Thanks! Will update to 4.7.1!

Seems to be working fine now, great!

Additionally, do I understand correctly, that the “Jobs” button was removed for good? Or is this just temporary?

image