Support Questions

Find answers, ask questions, and share your expertise

HUE WebUI doesn't launch

avatar
Explorer

Hi everyone,

 

i have a clean installation of cdh5 on a 4 node cluster. health of teh cluster is good. however, when i launch Hue WebUI, i get the following:

Traceback (most recent call last):
  File "/usr/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 1198, in communicate
    req.respond()
  File "/usr/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 568, in respond
    self._respond()
  File "/usr/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 580, in _respond
    response = self.wsgi_app(self.environ, self.start_response)
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/handlers/wsgi.py", line 241, in __call__
    response = self.get_response(request)
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/handlers/base.py", line 179, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/handlers/base.py", line 228, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/usr/lib/hue/desktop/core/src/desktop/views.py", line 323, in serve_500_error
    return render("500.mako", request, {'traceback': traceback.extract_tb(exc_info[2])})
  File "/usr/lib/hue/desktop/core/src/desktop/lib/django_util.py", line 222, in render
    **kwargs)
  File "/usr/lib/hue/desktop/core/src/desktop/lib/django_util.py", line 144, in _render_to_response
    return django_mako.render_to_response(template, *args, **kwargs)
  File "/usr/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 117, in render_to_response
    return HttpResponse(render_to_string(template_name, data_dictionary), **kwargs)
  File "/usr/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 106, in render_to_string_normal
    result = template.render(**data_dict)
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/template.py", line 443, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 786, in _render
    **_kwargs_for_callable(callable_, data))
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 818, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 844, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmp8Or4H4/desktop/500.mako.py", line 37, in render_body
    __M_writer(unicode( commonheader(_('Error'), "", user) ))
  File "/usr/lib/hue/desktop/core/src/desktop/views.py", line 404, in commonheader
    'user': user
  File "/usr/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 104, in render_to_string_normal
    template = lookup.get_template(template_name)
  File "/usr/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 80, in get_template
    return real_loader.get_template(uri)
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/lookup.py", line 245, in get_template
    return self._load(srcfile, uri)
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/lookup.py", line 311, in _load
    **self.template_args)
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/template.py", line 321, in __init__
    module = self._compile_from_file(path, filename)
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/template.py", line 379, in _compile_from_file
    module = compat.load_module(self.module_id, path)
  File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/compat.py", line 55, in load_module
    return imp.load_source(module_id, path, fp)
  File "/tmp/tmp8Or4H4/desktop/common_header.mako.py", line 26, in <module>
    from search.search_controller import SearchController
ImportError: No module named search.search_controller
===
the logs show:
Internal Server Error: /accounts/login/
Traceback (most recent call last):
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/handlers/base.py", line 101, in get_response
request.path_info)
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/urlresolvers.py", line 300, in resolve
sub_match = pattern.resolve(new_path)
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/urlresolvers.py", line 209, in resolve
return ResolverMatch(self.callback, args, kwargs, self.name)
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/urlresolvers.py", line 216, in callback
self._callback = get_callable(self._callback_str)
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/functional.py", line 27, in wrapper
result = func(*args)
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/urlresolvers.py", line 92, in get_callable
lookup_view = getattr(import_module(mod_name), func_name)
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/lib/hue/desktop/core/src/desktop/auth/views.py", line 37, in <module>
from useradmin.views import ensure_home_directory
ImportError: No module named useradmin.views
===
any ideas on how to resolve this?

thanks so much for any expertise!
1 ACCEPTED SOLUTION

avatar
Super Guru
There are a bunch of Hue packages missing.

Could you install the metapackage 'hue' that way you get all of them?

Romain

View solution in original post

10 REPLIES 10

avatar
New Contributor

Ronan,

 

I realized I had already done that after doing manual installation.

 

Then I found out that the file "$HUE_HOME/build/env/lib/python2.6/site-packages/hue.pth" you mentioned

is actualy a link "hue.pth -> /var/lib/hue/hue.pth"

 

But in the /var/lib/hue/ there wasn't the file hue.pth

 

Then, what I did was to copy this file from another cloudera installation.

 

This file contains the folowing.

 

./../../../../apps/about/src
../../../../../apps/filebrowser/src
../../../../../apps/help/src
../../../../../apps/jobbrowser/src
../../../../../apps/jobsub/src
../../../../../apps/metastore/src
../../../../../apps/oozie/src
../../../../../apps/proxy/src
../../../../../apps/useradmin/src

 

After that I was able to open the Hue web UI.

 

Now I´m figuring out how to enable Pig, Hive and Dashboard editors.

 

Thanks,

Samuel