I just ran mysql> call kalturadw.add_partitions();
This is the result:
MariaDB [(none)]> call kalturadw.add_partitions();
ERROR 1499 (HY000): Too many partitions (including subpartitions) were defined
What is interesting here is that this is a brand new install on Centos strictly following the instructions (that I have performed dozens of times, BTW).
I will try to find the source of the problem and report it if possible.
Yes, I know you are well expreinced in deploying Kaltura CE, I never doubted you:)
As I said, need to debug to find the source of the problem, then, we can discuss possible fixes.
When performing the grep /find part by hand, I noticed that no files are found, therefore, no expressions are replaced in order to solve the partitions error.
So, @jess , are these dates specific or can anything be done in order to fix this script and the partitions error again ?
# Replace various old dates to avoid issues with partitions
olddates="p_20130831 p_201308 20130901 20130902 p_20131231 p_201312 20140101 p_201406 20140701 p_201510 20151101"
for olddate in $olddates; do
FILES=`grep -rl $olddate`
if [ -n "$FILES" ]; then
sed -i $FILES "s/$olddate/p_$LDAYLASTMONTH/g"
fi
done
I didn’t work because it didn’t have partitions for the current date…
After going again through the scripts and docs, I noticed that you say on kaltura-base-config.sh that mysql 5.6 is supported. Is it correct ?
Mysql 5.6 supports up to 8192 partitions per table, un like Maria 5.5 (1024 partitions).
Probably I am hitting my head against a wall with Maria 5.5?
I will try a different path and test mysql 5.6 and Maria 10.6 and post the results. I know that Maria 10 did work for us (at least for the kaltura db).
After testing different database setups, I post my results to anyone interested in making DWH work again.
The main problem right now is that mariadb 5.5 does not support more than 1024 innodb partitions /table. Even if one manages to install kaltura-dwh, it might fail soon complaining for this error.
I tried installing different versions of MariaDB and Mysql and here are the results:
Mysql 5.6: DWH installation failed. The main reason is key length restriction on this version. I gave up on this version
-MariaDB 10.0. DWH installation went well and it works !
I had had no partitions issues and installation went smoothly.
Had an issue with a table that was not created (dwh_fact_plays.sql, I don’t know why) but so far so good. I just ran the script again for that table.
Just needed to change the installation scripts (kaltura-db-config.sh, kaltura-base-config.sh) and put 10 instead of 5 here:
if [ “$MYMAJVER” -ne 10 ];then
echo -e "${BRIGHT_RED}Your version of MySQL is incompatible.
Everything works and I haven’t found any issues with kaltura/api or analytics.
-MariaDB 10.1:
Works but need to add the ARCHIVE engine. Given that both 10.0 and 10.1 ar obsolete, I stuck with 10.0 to make things easier
-MariaDB 10.2 and up:
The main issues is SQL2003 compliance and sql_mode. I managed to advance in the installation but I gave up because is not worth the effort.
So, if anyone wants to use kaltura-dwh right now, Mariadb 10.0 is an option. Just add the correct repository and go ahead.
Thanks for sharing your research, much appreciated.
If you’d like to contribute these notes to the deployment guide, I’ll be happy to receive a pull from you.
With regards to the version check, could you share the exact string you get for select version();? I’ll revise the code accordingly, to allow working with this ver as well.
[mariadb]
name = MariaDB
baseurl = Index of /10.0/centos7-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
It is possible to use the same procedure up to Maria 10.1. With a little effort kaltura-dwh can be upgraded up to MariaDB 10.6, I think. Right now I stick to 10.0
The only mysterious issue is that this script apparently failed during setup and the table was missing: