Below the steps that I made...
1. Create a backup file.
mysqldump --all-databases > /home/fullbackup.sql.gz
2. Disable InnoDB fast shutdown
mysql
mysql -> SET GLOBAL innodb_fast_shutdown = 0;
3. Stop MariaDB
service mysql stop
4. Manually uninstall MariaDB 10.1
yum remove MariaDB-server MariaDB-client -y
5. Manually install MariaDB 10.2
yum install MariaDB-server MariaDB-client -y
6. Start MariaDB
service mysql start
7. Upgrade the DB to compatibility
mysql_upgrade
8. Enable service "mariadb.service" on "Services config -> Start-up Services".
systemctl enable mariadb.service
9. Reboot to check if all right.
reboot
If everything all right, relax and drink a coffee. If not, breath and drink a coffee to find a fix, but stay calm... you have a backup (Do you made the 1st step, right?).