Supported Databases
The DC/OS Hive Metastore supports the following relational databases (RDBMS):
- Derby
- MySQL
- Percona-MySQL
Install the Metastore with Derby
By default, the Hive Metastore configuration is set to the default embedded Derby database for development usage. However, it is not intended for use beyond simple testing.
dcos package install hive-metastore
Install the Metastore with MySQL
The Metastore can also be backed by a MySQL database.
- 
Users must deploy MySQL: dcos package install mysql
- 
Next, find the load balanced address for mysql. You’ll need this to configure hive-metastore properly. You can find the LB address in the DC/OS UI under Services > mysql > Endpoints tab. It should look similar to: mysql.marathon.l4lb.thisdcos.directory:3306.
- 
Next, configure the hive-metastorepackage with the following configs:- 
Create a custom config file that will be used to install hive-metastore, and save it asmetastore-options.json.{ "hive_metastore": { "database": "mysql", "database_user_name": "root", "database_password": "root", "database_address": "mysql.marathon.l4lb.thisdcos.directory:3306" } }
- 
Deploy the Metastorepackage:dcos package install hive-metastore --options=metastore-options.json
 
- 
Install Metastore with Percona-MySQL
Percona-MySQL is an enterprise-grade HA drop-in replacement for MySQL. To enable usage with Percona-MySQL:
- 
Users must deploy Percona-MySQL with the following configs: - 
Create a custom config file that will be used to install percona-pxc-mysql, and save it aspercona-options.json.{ "pxc-advanced": { "pxc_strict_mode": "PERMISSIVE" } }- pxc_strict_modecan also be set to- DISABLED.
 
- 
Deploy the Percona-MySQL package dcos package install percona-pxc-mysql --options=percona-options.json
 
- 
- 
Next, configure the hive-metastorepackage with the following configs:- 
Create a custom config file that will be used to install hive-metastore, and save it asmetastore-options.json.{ "hive_metastore": { "database": "mysql", "database_user_name": "root", "database_password": "root", "database_address": "pxc-db.percona-pxc-mysql.l4lb.thisdcos.directory:3306" } }
- 
The database_addressassumes default installation ofpercona-pxc-mysql. If using custom configs, users can find thevipendpoint using percona’s CLI command:$ dcos percona-pxc-mysql endpoints pxc-db-port
- 
Deploy the hive-metastorepackage:dcos package install hive-metastore --options=metastore-options.json
 
- 
- 
LimitationsCurrently, Hive Metastore is only compatible with Percona’s PERMISSIVEandDISABLEDmodes. See the limitations docs for more details.
 Hive Metastore Documentation
Hive Metastore Documentation