Я использую HDP-3.1 и следую этому руководству по установке HUE, когда я пытаюсь войти в систему, я получаю ошибку ниже, попробуйте поискать в Google, но не получите помощи.
[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напечатал value
переменную метода coerce_json_dict
и иногда Possible misconfiguration
, а иногда пустой json {}
, и я получаю пустой HUE UI
Я использую
- HDP-3.1
- Основная ветвь HUE
- mysql-5.5 в качестве базы данных
- ОС: CentOS 7