Last active
September 9, 2022 21:08
-
-
Save dgadiraju/c35eb63a77438b5bacacdd43ca14ba74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum -y install mariadb-server | |
sudo systemctl enable mariadb.service | |
sudo systemctl start mariadb | |
sudo /usr/bin/mysql_secure_installation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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