Skip to content

Instantly share code, notes, and snippets.

@churrops
Created January 31, 2018 19:47
Show Gist options
  • Save churrops/c689c88873bbf7b144239ab727e26e74 to your computer and use it in GitHub Desktop.
Save churrops/c689c88873bbf7b144239ab727e26e74 to your computer and use it in GitHub Desktop.
##########################################################
#################### INSTALACAO APACHE RANGER
##########################################################
http://coheigea.blogspot.com.br/2016/07/installing-apache-ranger-admin-ui.html
https://www.talend.com/blog/2016/07/28/syncing-users-groups-ldap-apache-ranger/
hostnamectl set-hostname apache-ranger
systemctl disable firewalld; systemctl stop firewalld
sed -ri 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
setenforce 0
yum update -y
yum install wget -y
############# ORACLE JDK
wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.rpm" && rpm -ivh jdk-8u161-linux-x64.rpm
############# MYSQL CONNECTOR
wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.42.tar.gz
tar xf mysql-connector-java-5.1.42.tar.gz
mkdir -p /usr/share/java/
cp mysql-connector-java-5.1.42/mysql-connector-java-5.1.42-bin.jar /usr/share/java/
ln -s /usr/share/java/mysql-connector-java-5.1.42-bin.jar /usr/share/java/mysql-connector-java.jar
rm -rfv mysql-connector-java-5.1.42
############# MAVEN
wget http://mirror.nbtelecom.com.br/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz
tar zxvf apache-maven-3.5.2-bin.tar.gz -C /opt/
export PATH=$PATH:/opt/apache-maven-3.5.2/bin
############# RANGER - Build the source code
wget http://ftp.unicamp.br/pub/apache/ranger/0.7.1/apache-ranger-0.7.1.tar.gz
tar zxvf apache-ranger-0.7.1.tar.gz
cd apache-ranger-0.7.1
mvn clean package assembly:assembly
mkdir -p /usr/lib/ranger
############# MARIADB
yum install mariadb-server -y
systemctl start mariadb; systemctl enable mariadb
mysql_secure_installation
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'admin'@'localhost' WITH GRANT OPTION;
CREATE USER 'ranger'@'localhost' IDENTIFIED BY 'password';
CREATE USER 'rangerlogger'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment