You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

If you are here, you already know that Apache Ranger is becoming an universal Authorization Framework for most of the data platforms in the CLOUD.  To make it easier for new Ranger users to try the Apache Ranger in action, we have created a docker based setup process that will take few steps to make the Apache Ranger running on your system (in few mins).

Here are the pre-requisites to run Apache Ranger on your system: 

  • You must have a latest version of Docker and Docker-Compose installed on your system
  • You should be able to run BASH (shell) script from your system

With these simple requirements, you can start the setup by downloading the latest version of Apache Ranger using the following command:

Running Apache Ranger - in few minutes ...
mkdir -p ${HOME}/git
cd ${HOME}/git
git clone https://github.com/apache/ranger.git
cd ranger
# set the Current Folder as RANGER HOME
export RANGER_HOME=`pwd`
# Enable only necessary services to be run along with CORE ranger services
export ENABLED_RANGER_SERVICES="tagsync,hadoop,hbase,kafka,hive,knox,kms" 
# Execute this command to bring the services up (after successful build if it is not already build)
./ranger_in_docker up

The above command should build the Apache Ranger from the source and creates necessary Docker Containers to run them in Docker. Once the process completes successfully, you should be able to login into Apache Ranger UI using  http://localhost:6080 with appropriate credential displayed on the screen.

As specified in the ENABLED_RANGER_SERVICES variables, additional services are also created as docker containers and runs with ranger plugin(s) installed and configured to work with the Ranger instance. You can login into these services (e.g.: Apache Hive Service)  and execute appropriate  (e.g.: Hive SQL) commands to see how Apache Ranger is enforcing your Authorization Policies and also, creates necessary audit records to provide an Enterprise Data Governance Framework.

If you want to turn off the services, please follow the instruction below:

Stop Dockers associated with Apache Ranger
# Go to the directory where we downloaded the Apache Ranger
cd ${HOME}/git/ranger
# Execute this command to bring services down 
./ranger_in_docker down

You can always bring the services up by following the instruction specified above for "Running Apache Ranger in few minutes" .


If you have any questions, please feel free to reach us via Ranger User Group Community. 
Subscribe to Apache Ranger User Group by sending an email to  user-subscribe@ranger.apache.org  


  • No labels