Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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
Super Guru
Did you install CDH with the packages?

Could you list them with the equivalent of:

sudo dpkg -l | grep hue

Romain

avatar
Explorer

Hi Romain,

thank you very much for your response! 

yes, i installed cdh5 via packages.

below is the info you requested. i hope this helps and let me know if there is more info you need. this is off of the host that has cdh installed.

 

[root@retail-paas1 ~]# yum list installed |grep hue
hue-beeswax.x86_64 3.5.0+cdh5.0.1+371-1.cdh5.0.1.p0.30.el6
hue-common.x86_64 3.5.0+cdh5.0.1+371-1.cdh5.0.1.p0.30.el6
hue-hbase.x86_64 3.5.0+cdh5.0.1+371-1.cdh5.0.1.p0.30.el6
hue-impala.x86_64 3.5.0+cdh5.0.1+371-1.cdh5.0.1.p0.30.el6
hue-pig.x86_64 3.5.0+cdh5.0.1+371-1.cdh5.0.1.p0.30.el6
hue-plugins.x86_64 3.5.0+cdh5.0.1+371-1.cdh5.0.1.p0.30.el6
hue-rdbms.x86_64 3.5.0+cdh5.0.1+371-1.cdh5.0.1.p0.30.el6
hue-search.x86_64 3.5.0+cdh5.0.1+371-1.cdh5.0.1.p0.30.el6
hue-spark.x86_64 3.5.0+cdh5.0.1+371-1.cdh5.0.1.p0.30.el6
hue-sqoop.x86_64 3.5.0+cdh5.0.1+371-1.cdh5.0.1.p0.30.el6
hue-zookeeper.x86_64 3.5.0+cdh5.0.1+371-1.cdh5.0.1.p0.30.el6

avatar
Explorer
hi,
just checking to see if any experts out there have any ideas?
thanks!

avatar
Super Guru
cat $HUE_HOME/build/env/lib/python2.6/site-packages/hue.pth ?

Where HUE_HOME is probably /usr/lib/hue

Also, did you restart Hue at least once?

Romain

avatar
New Contributor

Hi Romain,

 

I have also installed clean CDH5 and I was not able to launch Hue Web UI. I am also getting same error messages. I could not able to find hue.pth file in below location. Can you please advise me what could be the issue?

 

root@fiappd37:+b/python2.6/site-packages> yum list installed |grep hue
hue-beeswax.x86_64              3.6.0+cdh5.1.0+86-1.cdh5.1.0.p0.36.el6   @cloudera-cdh5
hue-common.x86_64               3.6.0+cdh5.1.0+86-1.cdh5.1.0.p0.36.el6   @cloudera-cdh5
hue-hbase.x86_64                3.6.0+cdh5.1.0+86-1.cdh5.1.0.p0.36.el6   @cloudera-cdh5
hue-impala.x86_64               3.6.0+cdh5.1.0+86-1.cdh5.1.0.p0.36.el6   @cloudera-cdh5
hue-pig.x86_64                  3.6.0+cdh5.1.0+86-1.cdh5.1.0.p0.36.el6   @cloudera-cdh5
hue-plugins.x86_64              3.6.0+cdh5.1.0+86-1.cdh5.1.0.p0.36.el6   @cloudera-cdh5
hue-rdbms.x86_64                3.6.0+cdh5.1.0+86-1.cdh5.1.0.p0.36.el6   @cloudera-cdh5
hue-search.x86_64               3.6.0+cdh5.1.0+86-1.cdh5.1.0.p0.36.el6   @cloudera-cdh5
hue-spark.x86_64                3.6.0+cdh5.1.0+86-1.cdh5.1.0.p0.36.el6   @cloudera-cdh5
hue-sqoop.x86_64                3.6.0+cdh5.1.0+86-1.cdh5.1.0.p0.36.el6   @cloudera-cdh5
hue-zookeeper.x86_64            3.6.0+cdh5.1.0+86-1.cdh5.1.0.p0.36.el6   @cloudera-cdh5
root@fiappd37:+b/python2.6/site-packages> ls -ltr *pth
-rw-r--r-- 1 root root   30 Jul 12 11:29 setuptools.pth
-rw-r--r-- 1 root root 1953 Jul 12 11:29 easy-install.pth
lrwxrwxrwx 1 root root   20 Aug 21 09:30 hue.pth -> /var/lib/hue/hue.pth
root@fiappd37:+b/python2.6/site-packages> pwd
/usr/lib/hue/build/env/lib/python2.6/site-packages
root@fiappd37:+b/python2.6/site-packages> ls -ltr /var/lib/hue
total 80
-rw-r--r-- 1 hue hue 77824 Aug 26 12:13 desktop.db

Raja

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

avatar
New Contributor

Thanks Romain,

After I install those packages I am able to open Hue web UI.

avatar
New Contributor

Romain

 

I have exactly the same problem.

 

But, how do I install metapackages?

 

Thanks,

Samuel

avatar
Super Guru
Install the package named 'hue'