AnsweredAssumed Answered

Error Loading libmysqlclient_r.so.16 on node running Hue

Question asked by alan.mcalexander on Jun 23, 2015
Latest reply on Jun 29, 2015 by alan.mcalexander
I am developing plans to use the web based installer for 4.1 and setup 5 nodes with 3 disks to use for Hadoop. All went really well after I followed the "Preparing Each Node" guide. The issue I'm running into is the node that runs Hue. I'm getting the below error. I went back and install mysql-devel, but that didn't seem to do anything.
<pre><code>
Traceback (most recent call last):
  File "/opt/mapr/hue/hue-3.7.0/bin/../build/env/bin/hue", line 9, in
    load_entry_point('desktop==3.7.0', 'console_scripts', 'hue')()
  File "/opt/mapr/hue/hue-3.7.0/desktop/core/src/desktop/manage_entry.py", line 60, in entry
    execute_manager(settings)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/__init__.py", line 459, in execute_manager
    utility.execute()
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/__init__.py", line 261, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/__init__.py", line 69, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/opt/mapr/hue/hue-3.7.0/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 "/opt/mapr/hue/hue-3.7.0/desktop/core/src/desktop/management/commands/runcpserver.py", line 32, in
    class Command(BaseCommand):
  File "/opt/mapr/hue/hue-3.7.0/desktop/core/src/desktop/management/commands/runcpserver.py", line 33, in Command
    help = _("Web server for Hue.")
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/translation/__init__.py", line 86, in ugettext
    return _trans.ugettext(message)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/translation/trans_real.py", line 278, in ugettext
    return do_translate(message, 'ugettext')
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/translation/trans_real.py", line 268, in do_translate
    _default = translation(settings.LANGUAGE_CODE)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/translation/trans_real.py", line 183, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/translation/trans_real.py", line 160, in _fetch
    app = import_module(appname)
  File "/opt/mapr/hue/hue-3.7.0/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 "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/contrib/admin/__init__.py", line 3, in
    from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/contrib/admin/helpers.py", line 2, in
    from django.contrib.admin.util import (flatten_fieldsets, lookup_field,
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/contrib/admin/util.py", line 1, in
    from django.db import models
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/__init__.py", line 40, in
    backend = load_backend(connection.settings_dict['ENGINE'])
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/__init__.py", line 34, in __getattr__
    return getattr(connections[DEFAULT_DB_ALIAS], item)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/utils.py", line 92, in __getitem__
    backend = load_backend(db['ENGINE'])
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/utils.py", line 24, in load_backend
    return import_module('.base', backend_name)
  File "/opt/mapr/hue/hue-3.7.0/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 "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/backends/mysql/base.py", line 16, in
    raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
Tue Jun 23 13:12:43 MDT 2015 runcpserver started, pid 25467
Traceback (most recent call last):
  File "/opt/mapr/hue/hue-3.7.0/bin/../build/env/bin/hue", line 9, in
    load_entry_point('desktop==3.7.0', 'console_scripts', 'hue')()
  File "/opt/mapr/hue/hue-3.7.0/desktop/core/src/desktop/manage_entry.py", line 60, in entry
    execute_manager(settings)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/__init__.py", line 459, in execute_manager
    utility.execute()
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/__init__.py", line 261, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/__init__.py", line 69, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/opt/mapr/hue/hue-3.7.0/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 "/opt/mapr/hue/hue-3.7.0/desktop/core/src/desktop/management/commands/runcpserver.py", line 32, in
    class Command(BaseCommand):
  File "/opt/mapr/hue/hue-3.7.0/desktop/core/src/desktop/management/commands/runcpserver.py", line 33, in Command
    help = _("Web server for Hue.")
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/translation/__init__.py", line 86, in ugettext
    return _trans.ugettext(message)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/translation/trans_real.py", line 278, in ugettext
    return do_translate(message, 'ugettext')
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/translation/trans_real.py", line 268, in do_translate
    _default = translation(settings.LANGUAGE_CODE)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/translation/trans_real.py", line 183, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/translation/trans_real.py", line 160, in _fetch
    app = import_module(appname)
  File "/opt/mapr/hue/hue-3.7.0/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 "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/contrib/admin/__init__.py", line 3, in
    from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/contrib/admin/helpers.py", line 2, in
    from django.contrib.admin.util import (flatten_fieldsets, lookup_field,
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/contrib/admin/util.py", line 1, in
    from django.db import models
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/__init__.py", line 40, in
    backend = load_backend(connection.settings_dict['ENGINE'])
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/__init__.py", line 34, in __getattr__
    return getattr(connections[DEFAULT_DB_ALIAS], item)
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/utils.py", line 92, in __getitem__
    backend = load_backend(db['ENGINE'])
  File "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/utils.py", line 24, in load_backend
    return import_module('.base', backend_name)
  File "/opt/mapr/hue/hue-3.7.0/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 "/opt/mapr/hue/hue-3.7.0/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/backends/mysql/base.py", line 16, in
    raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
</code></pre>

Outcomes