-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74382/
-----------------------------------------------------------
(Updated April 10, 2023, 1:57 p.m.)
Review request for ranger, Ankita Sinha, Kishor Gollapalliwar, Abhay Kulkarni,
Madhan Neethiraj, Mehul Parikh, Mugdha Varadkar, and Ramesh Mani.
Bugs: RANGER-4150
https://issues.apache.org/jira/browse/RANGER-4150
Repository: ranger
Description
-------
This Patch eanbles Usersync to support HA. This patch is dependent on
RANGER-4149
Diffs
-----
agents-common/src/main/java/org/apache/ranger/plugin/util/RangerMetricsUtil.java
d85009d18
distro/src/main/assembly/usersync.xml 187d535e4
ugsync/pom.xml 62e6b41ce
ugsync/src/main/java/org/apache/ranger/unixusersync/config/UserGroupSyncConfig.java
ad440f257
ugsync/src/main/java/org/apache/ranger/unixusersync/ha/UserSyncHAInitializerImpl.java
PRE-CREATION
ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
27e48202e
ugsync/src/main/java/org/apache/ranger/usergroupsync/UserGroupSync.java
575042620
ugsync/src/main/java/org/apache/ranger/usergroupsync/UserSyncMetricsProducer.java
9846a1bf5
unixauthservice/scripts/templates/ranger-ugsync-template.xml 0ae76eb55
unixauthservice/src/main/java/org/apache/ranger/authentication/UnixAuthenticationService.java
d03f45087
Diff: https://reviews.apache.org/r/74382/diff/1/
Testing
-------
Below steps are perfomed for testing
1. Steps to make UserSync Application HA
2. Decide the number of nodes on which you want to have UserSync up and running.
3. Deploy the Usersync on all the nodes decided on Step 1.
4. SSH to node on which userSync is deployed.
5. go to usersync conf/ directory and open ranger-ugsync-site.xml
6. update below configuration and restart the UserSync.
a. ranger-ugsync.server.ha.enabled= true
b. ranger-ugsync.server.ha.zookeeper.connect={add zookeeper host:port
comma separated}
c. ranger-ugsync.server.ha.ids={add ids for number of host you have for
usersync ex. if you have 2 node add id1,id2 }
d. ranger-ugsync.server.ha.address.id1={host:port of usersync node1}
e. ranger-ugsync.server.ha.address.id2={host:port of usersync node2}
f. ranger-ugsync.server.ha.zookeeper.auth={auth:} if you want to provide
acl auth otherwise keep blank
7. Perform 3, 4 & 5 to all the UserSync nodes.
Thanks,
Dineshkumar Yadav