AnsweredAssumed Answered

Trying to resolve - ERROR: Failed to find shared library for backend mysql - CentOS 7.1

Question asked by gesgeorge on Jan 22, 2016
Latest reply on Mar 16, 2017 by dzndrx
Hi,

I've installed mapr 5 successfully, but I have some errors related to hoststats and metrics database. Both have the following error:

ERROR: Failed to find shared library for backend mysql

The OS is CentOS 7 `CentOS Linux release 7..1.1503 (Core)` and Mysql is installed on it (MariaDB actually).

    sudo ldconfig -v | grep mysql
    
    /usr/lib64/mysql:
            libmysqlclient.so.18 -> libmysqlclient.so.18.0.0
            libsoci_mysql.so.3.2 -> libsoci_mysql.so.3.2.3

Is this an issue with the MySql client that is being used? The docs just mentions that mysql version should be > mysql 5.1.

any help would be appreciated.

Thanks
Gesly

**UPDATE:**
Looks like I've problems with Hue as well. I see the following in hue logs

    File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/mysql/base.py", line 17, in <module>
        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 Fri Jan 22 18:13:29 EST 2016 runcpserver started, pid 66398

Hue is looking for libmysqlclient_r.so.16 and I've libmysqlclient.so.18 that comes with CentOS 7.1

Is CentOS 7.1 not supported?





Outcomes