Skip to content

Instantly share code, notes, and snippets.

@dgadiraju
Last active September 9, 2022 21:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgadiraju/c35eb63a77438b5bacacdd43ca14ba74 to your computer and use it in GitHub Desktop.
Save dgadiraju/c35eb63a77438b5bacacdd43ca14ba74 to your computer and use it in GitHub Desktop.
sudo yum -y install mariadb-server
sudo systemctl enable mariadb.service
sudo systemctl start mariadb
sudo /usr/bin/mysql_secure_installation
# Login as root
# mysql -u root -p
CREATE DATABASE scm;
CREATE DATABASE hive;
CREATE DATABASE oozie;
CREATE DATABASE hue;
CREATE DATABASE reportmanager;
CREATE USER 'hive'@'%' IDENTIFIED BY 'itversity';
CREATE USER 'oozie'@'%' IDENTIFIED BY 'itversity';
CREATE USER 'hue'@'%' IDENTIFIED BY 'itversity';
CREATE USER 'rm'@'%' IDENTIFIED BY 'itversity';
CREATE USER 'scm'@'%' IDENTIFIED BY 'itversity';
GRANT ALL PRIVILEGES ON scm.* TO 'scm'@'%';
GRANT ALL PRIVILEGES ON hive.* TO 'hive'@'%';
GRANT ALL PRIVILEGES ON oozie.* TO 'oozie'@'%';
GRANT ALL PRIVILEGES ON hue.* TO 'hue'@'%';
GRANT ALL PRIVILEGES ON reportmanager.* TO 'rm'@'%';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment