c56be3644e
Partially implements: blueprint edp-hive-vanilla-swift Change-Id: Iacb89711b40ac23a1498dac88f1f9c8ef4a03f37
9 lines
409 B
SQL
9 lines
409 B
SQL
CREATE DATABASE metastore;
|
|
USE metastore;
|
|
SOURCE /opt/hive/scripts/metastore/upgrade/mysql/hive-schema-0.10.0.mysql.sql;
|
|
CREATE USER 'hive'@'localhost' IDENTIFIED BY 'pass';
|
|
REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'hive'@'localhost';
|
|
GRANT ALL PRIVILEGES ON metastore.* TO 'hive'@'localhost' IDENTIFIED BY 'pass';
|
|
GRANT ALL PRIVILEGES ON metastore.* TO 'hive'@'%' IDENTIFIED BY 'pass';
|
|
FLUSH PRIVILEGES;
|
|
exit |