#
#
Check Apache Ranger Wiki for up to date instruction: https://cwiki.apache.org/confluence/display/RANGER/Index
Apache Ranger is currently NOT setup to use pull requests to take in the changes for commit. Please use the apache review board to submit your code changes for review and commit. https://reviews.apache.org Also create a jira to go along with the review and mention it in the review board review. https://issues.apache.org/jira/browse/RANGER
Check out the code from GIT repository
On the root folder, please execute the following Maven command:
$ mvn clean compile package install $ mvn eclipse:eclipse
(Ranger Admin UI tests depend on PhantomJS. If the build fails with npm or Karma errors you can either i. install PhantomJS dependencies for your platform (bzip2 and fontconfig) ii. skip JavaScript test execution: mvn -DskipJSTests ...)
After the above build command execution, you should see the following TAR files in the target folder:
ranger-
Create a Eclipse workspace called 'ranger'
Import maven project from the root directory where ranger source code is downloaded (and build)
Installation Host Information
1. Ranger Admin Tool Component (ranger-<version-number>-admin.tar.gz) should be installed on a host where Policy Admin Tool web application runs on port 6080 (default).
2. Ranger User Synchronization Component (ranger-<version-number>-usersync.tar.gz) should be installed on a host to synchronize the external user/group information into Ranger database via Ranger Admin Tool.
3. Ranger Component plugin should be installed on the component boxes:
(a) HDFS Plugin needs to be installed on Name Node hosts
(b) Hive Plugin needs to be installed on HiveServer2 hosts
(c) HBase Plugin needs to be installed on both Master and Regional Server nodes.
(d) Knox Plugin needs to be installed on Knox gateway host.
(e) Storm Plugin needs to be installed on Storm hosts.
(f) Kafka/Solr Plugin needs to be installed on their respective component hosts.
(g) YARN plugin needs to be installed on YARN Resource Manager hosts
(h) Sqoop plugin needs to be installed on Sqoop2 hosts
(i) Kylin plugin needs to be installed on Kylin hosts
Installation Process
Download the tar.gz file into a temporary folder in the box where it needs to be installed.
Expand the tar.gz file into /usr/lib/ranger/ folder
Go to the component name under the expanded folder (e.g. /usr/lib/ranger/ranger-
Modify the install.properties file with appropriate variables
If the module has setup.sh, Execute ./setup.sh
If the install.sh file does not exists,
Execute ./enable-