To install MariaDB, use the MariaDB Repository Configuration Tool. See MariaDB Downloads.
/etc/yum.repos.d/. You can
name the file MariaDB.repo or something
similar:# MariaDB 10.4 RedHat repository list
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.4/rhel7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1sources.list
file. To do so, after importing the signing key as outlined above, copy and paste
the following into a file under /etc/apt/sources.list.d/. You can
name the file MariaDB.list or something similar. Or you can add
it to the bottom of your /etc/apt/sources.list
file:# MariaDB 10.4 repository list - created 2020-04-17 08:34 UTC
# http://downloads.mariadb.org/mariadb/repositories/
deb [arch=amd64,arm64,ppc64el] http://mirror.mephi.ru/mariadb/repo/10.4/ubuntu bionic main
deb-src http://mirror.mephi.ru/mariadb/repo/10.4/ubuntu bionic mainsources.list file is in place, install MariaDB:sudo yum clean all && sudo yum install MariaDB-server MariaDB-clientsudo zypper update && sudo zypper install mariadbsudo apt update && sudo apt install mariadb-serversudo service mariadb startsudo systemctl start mariadbmysql_secure_installation shell
script:sudo mysql_secure_installation
Enter current password for root (enter for none): press Enter
Set root password? Y
New password: Type new root password
Re-enter new password: Confirm the password
Remove anonymous users? Y
Disallow root login remotely? Y
Remove test database and access to it? Y
Reload privilege tables now? Y.jar file. The
MariaDB Connector/J can also be installed by manually installing a .jar
file to a directory in your CLASSPATH. Download the MariaDB Connector/J
.jar files from the following URL: https://downloads.mariadb.com/Connectors/java/connector-java-2.5.4/..jar files to the
/opt/mapr/hive/hive-<version>/lib/
directory:cp mariadb-java-client-2.5.4-sources.jar /opt/mapr/hive-<version>/lib/
cp mariadb-java-client-2.5.4.jar /opt/mapr/hive/hive-<version>/lib/
cp mariadb-java-client-2.5.4-javadoc.jar /opt/mapr/hive/hive-<version>/lib/maprcli node services -name hivemeta -action restart -nodes 'hostname -f'
maprcli node services -name hs2 -action restart -nodes 'hostname -f'$ mysql -u root -p <password>
MariaDB [(none)]> CREATE USER hiveuser WITH PASSWORD 'password';
MariaDB [(none)]> CREATE DATABASE metastore;
MariaDB [(none)]> REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'hiveuser'@'metastorehost';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON metastore.* TO 'hiveuser'@'metastorehost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> quit;/opt/mapr/hive/hive-<version>/conf), update the
hive-site.xml file with the following properties. Beginning with
MEP 7.0.0, you must use the MySQL driver with
MariaDB:<property>
<description>the URL of the MariaDB database</description>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://<hostname>:3306/metastore</value>
</property>
<property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>org.mariadb.jdbc.Driver</value>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value><hiveuser></value>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value><fill in with password></value>
</property>
<property>
<description>IP address (or FQDN) and port of the metastore host</description>
<name>hive.metastore.uris</name>
<value>thrift://<hostname>:9083</value>
</property>schematool command as an initialization
step:/opt/mapr/hive/hive-<version>/bin/schematool -dbType mysql -initSchema