You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
MCOL-3551 Use generic MariaDB Server paths
This branch enforces the use of generic MariaDB server paths for their binaries and data rather than custom paths. /usr/local/mariadb/columnstore is now only for columnstore with this patch. It should be noted that this removes the auto-mounting of external MariaDB UM data storage for AWS. This is also a fix for MCOL-3510 after buildbot changes are made. Also... MCOL-3552 Use columnstore.cnf to load plugins The ColumnStore plugins now load using a columnstore.cnf instead of a SQL sequence to be more in-line with MariaDB's methods.
This commit is contained in:
@@ -22,9 +22,9 @@ checkForError() {
|
||||
# See if engine columnstore exist
|
||||
#---------------------------------------------------------------------------
|
||||
echo "checking for engine columnstore..."
|
||||
$installdir/mysql/bin/mysql \
|
||||
mysql \
|
||||
--user=root \
|
||||
--execute='select * from mysql.plugin where name="columnstore";' \
|
||||
--execute='show engines;' \
|
||||
calpontsys | grep -i columnstore
|
||||
|
||||
#
|
||||
@@ -65,31 +65,11 @@ USER=`whoami 2>/dev/null`
|
||||
if [ $USER != "root" ]; then
|
||||
ldconfig >/dev/null 2>&1
|
||||
export COLUMNSTORE_INSTALL_DIR=$installdir
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$COLUMNSTORE_INSTALL_DIR/lib:$COLUMNSTORE_INSTALL_DIR/mysql/lib
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$COLUMNSTORE_INSTALL_DIR/lib
|
||||
else
|
||||
ldconfig
|
||||
fi
|
||||
|
||||
if [ -f $installdir/lib/libcalmysql.so.1.0.0 ]; then
|
||||
libcalmysql=$installdir/lib/libcalmysql.so.1.0.0
|
||||
libudfsdk=$installdir/lib/libudf_mysql.so.1.0.0
|
||||
libregrsdk=$installdir/lib/libregr_mysql.so.1.0.0
|
||||
elif [ -f $installdir/lib/libcalmysql.so.1 ]; then
|
||||
libcalmysql=$installdir/lib/libcalmysql.so.1
|
||||
libudfsdk=$installdir/lib/libudf_mysql.so.1
|
||||
libregrsdk=$installdir/lib/libregr_mysql.so.1
|
||||
else
|
||||
libcalmysql=
|
||||
fi
|
||||
|
||||
if [ -d $installdir/mysql/lib64/mysql/plugin -a -n "$libcalmysql" ]; then
|
||||
cd $installdir/mysql/lib64/mysql/plugin
|
||||
ln -sf $libcalmysql libcalmysql.so
|
||||
ln -sf $libcalmysql libcalmysqlent.so
|
||||
ln -sf $libudfsdk libudf_mysql.so
|
||||
ln -sf $libregrsdk libregr_mysql.so
|
||||
fi
|
||||
|
||||
if [ $installdir != "/usr/local/mariadb/columnstore" ]; then
|
||||
sed -i -e s@/usr/local/mariadb/columnstore@$installdir@g /etc/my.cnf.d/columnstore.cnf
|
||||
fi
|
||||
|
Reference in New Issue
Block a user