question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'Config' object has no attribute 'get' with HUE 3.9 on CentOS 7.1

See original GitHub issue

After installing HUE on CentOS 7.1 I get the following error when I try to connect (HUE can’t event load the login page). I’m using HUE 3.9. Here is the whole trace:

Traceback (most recent call last):
  File "/usr/local/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 1196, in communicate
    req.respond()
  File "/usr/local/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 568, in respond
    self._respond()
  File "/usr/local/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 580, in _respond
    response = self.wsgi_app(self.environ, self.start_response)
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/wsgi.py", line 206, in __call__
    response = self.get_response(request)
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py", line 194, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py", line 236, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/usr/local/hue/desktop/core/src/desktop/views.py", line 312, in serve_500_error
    return render("500.mako", request, {'traceback': traceback.extract_tb(exc_info[2])})
  File "/usr/local/hue/desktop/core/src/desktop/lib/django_util.py", line 227, in render
    **kwargs)
  File "/usr/local/hue/desktop/core/src/desktop/lib/django_util.py", line 148, in _render_to_response
    return django_mako.render_to_response(template, *args, **kwargs)
  File "/usr/local/hue/desktop/core/src/desktop/lib/django_mako.py", line 125, in render_to_response
    return HttpResponse(render_to_string(template_name, data_dictionary), **kwargs)
  File "/usr/local/hue/desktop/core/src/desktop/lib/django_mako.py", line 114, in render_to_string_normal
    result = template.render(**data_dict)
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/template.py", line 443, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 786, in _render
    **_kwargs_for_callable(callable_, data))
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 818, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 844, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmpoA084p/desktop/500.mako.py", line 39, in render_body
    __M_writer(unicode( commonheader(_('Error'), "", user) ))
  File "/usr/local/hue/desktop/core/src/desktop/views.py", line 384, in commonheader
    'is_ldap_setup': 'desktop.auth.backend.LdapBackend' in desktop.conf.AUTH.BACKEND.get()
  File "/usr/local/hue/desktop/core/src/desktop/lib/django_mako.py", line 114, in render_to_string_normal
    result = template.render(**data_dict)
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/template.py", line 443, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 786, in _render
    **_kwargs_for_callable(callable_, data))
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 818, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Mako-0.8.1-py2.7.egg/mako/runtime.py", line 844, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmpoA084p/desktop/common_header.mako.py", line 159, in render_body
    __M_writer(escape(unicode( url('desktop.views.unsupported') )))
  File "/usr/local/hue/desktop/core/src/desktop/lib/django_mako.py", line 131, in url
    return reverse(view_name, args=args, kwargs=view_args)
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/urlresolvers.py", line 536, in reverse
    return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/urlresolvers.py", line 403, in _reverse_with_prefix
    self._populate()
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/urlresolvers.py", line 290, in _populate
    for name in pattern.reverse_dict:
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/urlresolvers.py", line 315, in reverse_dict
    self._populate()
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/urlresolvers.py", line 303, in _populate
    lookups.appendlist(pattern.callback, (bits, p_pattern, pattern.default_args))
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/urlresolvers.py", line 230, in callback
    self._callback = get_callable(self._callback_str)
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/functional.py", line 32, in wrapper
    result = func(*args)
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/urlresolvers.py", line 97, in get_callable
    mod = import_module(mod_name)
  File "/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/usr/local/hue/apps/jobsub/src/jobsub/views.py", line 43, in <module>
    from oozie.forms import design_form_by_type
  File "/usr/local/hue/apps/oozie/src/oozie/forms.py", line 335, in <module>
    class CoordinatorForm(forms.ModelForm):
  File "/usr/local/hue/apps/oozie/src/oozie/forms.py", line 343, in CoordinatorForm
    class Meta:
  File "/usr/local/hue/apps/oozie/src/oozie/forms.py", line 346, in Meta
    if ENABLE_CRON_SCHEDULING.get():
AttributeError: 'Config' object has no attribute 'get'

Thanks for the help!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
romainrcommented, Mar 9, 2017

CM generates a hue.ini for you, you would need to enter

[desktop] app_blacklist=

into the safety valve of the Hue role!

Note: To override a value in Cloudera Manager, you need to enter verbatim each mini section from below into the Hue Safety Valve: Hue Service → Configuration → Service-Wide → Advanced → Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini

0reactions
geekyouthcommented, Apr 29, 2020

Api 错误:‘unicode’ object has no attribute ‘keys’

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

[HUE-7201] [importer] "Config' object has no attribute 'get ...
[importer] "Config' object has no attribute 'get'" when Solr is not installed.
Read more >
pydantic: AttributeError: 'Config' object has no attribute
I am running into some problems with loading .env file contents in config file as app config attributes, I am using pydantic-0.7.1 with ......
Read more >
Hue 3 on HDP installation tutorial
its working fine for all the components except hbase. Getting error on the UI "Api Error: 'NoneType' object has no attribute 'get'". Can...
Read more >
What's New In Python 3.11 — Python 3.11.1 documentation
For most user code, no frame objects are created at all. As a result, nearly all Python functions calls have sped up significantly....
Read more >
[hue] sqlparse import error - Cloudera Community - 56872
Find answers, ask questions, and share your expertise ... i faced HUE-4546 issue(none type object has no attribute 'update_data'
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found