Using mariadb-10.0.14-linux-x86_64.tar.gz on a RHEL6 host:
INSTALL SONAME 'ha_connect';
also resulted in the same error as above:
ERROR 1126 (HY000): Can't open shared library '<REMOVED>lib/plugin/ha_connect.so' (errno: 2, libodbc.so.1: cannot open shared object file: No such file or directory)
The RH unixODBC-2.2.14-11.el6 package provides:
/usr/lib64/libodbc.so
/usr/lib64/libodbc.so.2
/usr/lib64/libodbc.so.2.0.0
( On RHEL5 the RH unixODBC-2.2.11-10.el5 package provides /usr/lib/libodbc.so.1 )
http://www.unixodbc.org/ mentions:
"28.Nov.2011 2.3.1 Released
Major change is to change the library version number from 1 to 2 to signal the SQLLEN change for 64 land. Should have been done for 2.3.0, but better late than never. So if after installing you have apps that can't find libodbc.so, its likely they are linked to libodbc.so.1, so just create a symlink from libodbc.so.2"
msodbcsql-11.0.2270.0-3.el6.x86_64 (used for SQL Server AlwaysOn) is built with unixODBC-2.3.0 so I ended up editing mariadb-10.0.14-linux-x86_64/bin/mysqld_safe to
mysqld_ld_library_path=/opt/microsoft/unixODBC/
and now after loading the CONNECT storage engine and after creating a ~/.odbc.ini for the mysql user and pointing VERTICAINI to a .vertica.ini file:
mysql> create table vertica_cluster_001 engine=connect table_type=ODBC srcdef="select sum(processor_core_count) as 'processor_core_count' from host_resources" Connection='DSN=VerticaDSN01;';
Query OK, 0 rows affected (0.01 sec)
mysql> select * from vertica_cluster_001;
+----------------------+
| processor_core_count |
+----------------------+
| 192 |
+----------------------+
1 row in set (0.03 sec)
I'm using generic Linux binaries on Debian.