In this article, we will explain how to resolve the Cloudera HUE is not working properly getting below error:
ERROR:
File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 1228, in communicate req.respond() File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 589, in respond self._respond() File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 601, in _respond response = self.wsgi_app(self.environ, self.start_response) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/handlers/wsgi.py", line 157, in call response = self.get_response(request) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/handlers/base.py", line 124, in get_response response = self._middleware_chain(request) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/handlers/exception.py", line 43, in inner response = response_for_exception(request, exc) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/handlers/exception.py", line 93, in response_for_exception response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info()) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/handlers/exception.py", line 143, in handle_uncaught_exception return callback(request, **param_dict) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/views.py", line 415, in serve_500_error return render("500.mako", request, {'traceback': traceback.extract_tb(exc_info[2])}) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/django_util.py", line 241, in render **kwargs File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/django_util.py", line 154, in _render_to_response return django_mako.render_to_response(template, *args, **kwargs) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 127, in render_to_response return HttpResponse(render_to_string(template_name, data_dictionary), **kwargs) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 116, in render_to_string_normal result = template.render(**data_dict) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/template.py", line 462, in render return runtime.render(self, self.callable, args, data) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 838, in _render **kwargs_for_callable(callable, data)) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 873, in _render_context exec_template(inherit, lclcontext, args=args, kwargs=kwargs) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 899, in exec_template callable(context, *args, **kwargs) File "/tmp/tmp48TuVW/desktop/500.mako.py", line 40, in render_body __M_writer(unicode( commonheader(('500 - Server error'), "", user, request) )) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/views.py", line 494, in commonheader 'is_s3_enabled': fsmanager.is_enabled('s3a') and fsmanager.has_access('s3a', request.user), File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/fsmanager.py", line 72, in is_enabled return is_s3_enabled() File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/libs/aws/src/aws/conf.py", line 259, in is_enabled return ('default' in list(AWS_ACCOUNTS.keys()) and AWS_ACCOUNTS['default'].get_raw() and AWS_ACCOUNTS['default'].ACCESS_KEY_ID.get()) or File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/conf.py", line 159, in get return self.config.get_value(data, present=present, prefix=self.prefix, coerce_type=True) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/conf.py", line 270, in get_value raw_val = self.default File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/conf.py", line 336, in default return self.dynamic_default() File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/libs/aws/src/aws/conf.py", line 81, in get_default_access_key_id access_key_id_script = AWS_ACCOUNTS['default'].ACCESS_KEY_ID_SCRIPT.get() File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/conf.py", line 159, in get return self.config.get_value(data, present=present, prefix=self.prefix, coerce_type=True) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/conf.py", line 273, in get_value return self._coerce_type(raw_val, prefix) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/conf.py", line 293, in _coerce_type return self.type(raw) File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p0. 123/lib/hue/desktop/core/src/desktop/lib/conf.py", line 717, in coerce_password_from_script p = subprocess.Popen(script, shell=True, stdout=subprocess.PIPE) File "/usr/lib64/python2.7/subprocess.py", line 711, in init errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1224, in _execute_child self.pid = os.fork() OSError: [Errno 12] Cannot allocate memory
Solution:
Step1 : First, we need to login Cloudera manager with Admin privileges
Step 2: Click HUE services and check HUE web ui for all nodes
Step 3: If any HUE web ui unable to access. It may cause the issue
Step4 : Put maintenance mode on that particular node and restart
Step 5: Verify that HUE web ui is working or not.
Step 6: Most of the case it will work.