...
Get the ranger source
mkdir ~/dev
cd ~/dev
git clone -b master git@githubranger-0.4 git@github.com:apache/incubator-ranger.git ranger
Now build the source
cd ranger
export MAVEN_OPTS="-Xmx512M"
yum search gcc and Install gcc (yum install gcc.x86_64)
mvn clean compile package assembly:assembly
Verify all the tar files under target dir
ls -ltr *tar.gz
-rw-r--r-- 1 root root 15068844 Dec 1 04:30 ranger-0.4.0-hdfs-plugin.tar.gz
-rw-r--r-- 1 root root 14480716 Dec 1 04:30 ranger-0.4.0-hive-plugin.tar.gz
-rw-r--r-- 1 root root 14349626 Dec 1 04:30 ranger-0.4.0-hbase-plugin.tar.gz
-rw-r--r-- 1 root root 17763192 Dec 1 04:30 ranger-0.4.0-knox-plugin.tar.gz
-rw-r--r-- 1 root root 21243470 Dec 1 04:31 ranger-0.4.0-storm-plugin.tar.gz
-rw-r--r-- 1 root root 126143540 Dec 1 04:31 ranger-0.4.0-admin.tar.gz
-rw-r--r-- 1 root root 7677999 Dec 1 04:31 ranger-0.4.0-usersync.tar.gz
...