deb-sahara/sahara/plugins/vanilla/hadoop2/resources/create_hive_db.sql
Kazuki Oikawa c56be3644e Added hive support for vanilla2
Partially implements: blueprint edp-hive-vanilla-swift

Change-Id: Iacb89711b40ac23a1498dac88f1f9c8ef4a03f37
2014-11-25 16:31:43 +09:00

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