Support Questions
Find answers, ask questions, and share your expertise
Announcements
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

Highlighted

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     192.168.110.90 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/base.py", 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/decorators.py", line 185, in inner
    return func(*args, **kwargs)
  File "/home/coderepo/hue/desktop/core/src/desktop/views.py", 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/django_util.py", line 236, in render
    **kwargs)
  File "/home/coderepo/hue/desktop/core/src/desktop/lib/django_util.py", line 150, in _render_to_response
    return django_mako.render_to_response(template, *args, **kwargs)
  File "/home/coderepo/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 "/home/coderepo/hue/desktop/core/src/desktop/lib/django_mako.py", 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/template.py", 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/runtime.py", 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/runtime.py", 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/runtime.py", line 899, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmpfstIV2/desktop/global_js_constants.mako.py", line 95, in render_body
    __M_writer(escape(unicode( get_cluster_config(user)['has_computes'] )))
  File "/home/coderepo/hue/desktop/core/src/desktop/models.py", line 1568, in get_cluster_config
    return Cluster(user).get_app_config().get_config()
  File "/home/coderepo/hue/desktop/core/src/desktop/models.py", line 1590, in get_config
    app_config = self.get_apps()
  File "/home/coderepo/hue/desktop/core/src/desktop/models.py", line 1617, in get_apps
    ('editor', self._get_editor()),
  File "/home/coderepo/hue/desktop/core/src/desktop/models.py", line 1669, in _get_editor
    _interpreters = get_ordered_interpreters(self.user)
  File "/home/coderepo/hue/desktop/libs/notebook/src/notebook/conf.py", line 87, in get_ordered_interpreters
    } for i in reordered_interpreters
  File "/home/coderepo/hue/desktop/core/src/desktop/lib/conf.py", 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/conf.py", line 276, in get_value
    return self._coerce_type(raw_val, prefix)
  File "/home/coderepo/hue/desktop/core/src/desktop/lib/conf.py", line 296, in _coerce_type
    return self.type(raw)
  File "/home/coderepo/hue/desktop/core/src/desktop/lib/conf.py", line 661, in coerce_json_dict
    return json.loads(value)
  File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", 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