Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Possible misconfiguration value in coerce_json_dict method while logging into HUE on HDP-3.1


Possible misconfiguration value in coerce_json_dict method while logging into HUE on HDP-3.1

New Contributor

I am using HDP-3.1 and followed this guide to install HUE, when I try to login I get below error, try googling but got no help


[23/Sep/2019 03:46:22 +0000] access       INFO hue - "GET /hue HTTP/1.1" returned in 186ms (mem: 141mb)
coerce_json_dict value:: {}
coerce_json_dict value:: {}
coerce_json_dict value:: Possible misconfiguration
[23/Sep/2019 03:46:23 +0000] middleware   INFO     Processing exception: No JSON object could be decoded: Traceback (most recent call last):
  File "/home/coderepo/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/core/handlers/", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/coderepo/hue/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/utils/", line 185, in inner
    return func(*args, **kwargs)
  File "/home/coderepo/hue/desktop/core/src/desktop/", line 371, in global_js_constants
    'layer_options': json.dumps(desktop.conf.LEAFLET_TILE_LAYER_OPTIONS.get()),
  File "/home/coderepo/hue/desktop/core/src/desktop/lib/", line 236, in render
  File "/home/coderepo/hue/desktop/core/src/desktop/lib/", line 150, in _render_to_response
    return django_mako.render_to_response(template, *args, **kwargs)
  File "/home/coderepo/hue/desktop/core/src/desktop/lib/", line 127, in render_to_response
    return HttpResponse(render_to_string(template_name, data_dictionary), **kwargs)
  File "/home/coderepo/hue/desktop/core/src/desktop/lib/", line 116, in render_to_string_normal
    result = template.render(**data_dict)
  File "/home/coderepo/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/", line 462, in render
    return runtime._render(self, self.callable_, args, data)
  File "/home/coderepo/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/", line 838, in _render
    **_kwargs_for_callable(callable_, data))
  File "/home/coderepo/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/", line 873, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/home/coderepo/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/", line 899, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmpfstIV2/desktop/", line 95, in render_body
    __M_writer(escape(unicode( get_cluster_config(user)['has_computes'] )))
  File "/home/coderepo/hue/desktop/core/src/desktop/", line 1568, in get_cluster_config
    return Cluster(user).get_app_config().get_config()
  File "/home/coderepo/hue/desktop/core/src/desktop/", line 1590, in get_config
    app_config = self.get_apps()
  File "/home/coderepo/hue/desktop/core/src/desktop/", line 1617, in get_apps
    ('editor', self._get_editor()),
  File "/home/coderepo/hue/desktop/core/src/desktop/", line 1669, in _get_editor
    _interpreters = get_ordered_interpreters(self.user)
  File "/home/coderepo/hue/desktop/libs/notebook/src/notebook/", line 87, in get_ordered_interpreters
    } for i in reordered_interpreters
  File "/home/coderepo/hue/desktop/core/src/desktop/lib/", line 160, in get
    return self.config.get_value(data, present=present, prefix=self.prefix, coerce_type=True)
  File "/home/coderepo/hue/desktop/core/src/desktop/lib/", line 276, in get_value
    return self._coerce_type(raw_val, prefix)
  File "/home/coderepo/hue/desktop/core/src/desktop/lib/", line 296, in _coerce_type
    return self.type(raw)
  File "/home/coderepo/hue/desktop/core/src/desktop/lib/", line 661, in coerce_json_dict
    return json.loads(value)
  File "/usr/lib64/python2.7/json/", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded



I printed value variable of coerce_json_dict method and it is sometimes Possible misconfiguration and sometimes empty json {}

and I get empty HUE UI


I am using

  • HDP-3.1
  • HUE master branch
  • mysql-5.5 as database
  • OS : CentOS 7
Don't have an account?
Coming from Hortonworks? Activate your account here