You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Qiang Zhang <zh...@zte.com.cn> on 2016/11/03 09:47:53 UTC

Review Request 53421: Ranger admin support yarn HA

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53421/
-----------------------------------------------------------

Review request for ranger, Don Bosco Durai, Madhan Neethiraj, Ramesh Mani, and Velmurugan Periasamy.


Bugs: RANGER-1201
    https://issues.apache.org/jira/browse/RANGER-1201


Repository: ranger


Description
-------

Solution:To add standby yarn rest url configuration in create yarn service page.
Configuration key: yarn.url.standby, label:YARN REST URL STANDBY.


Diffs
-----

  agents-common/src/main/resources/service-defs/ranger-servicedef-yarn.json 53f9e18 
  plugin-yarn/src/main/java/org/apache/ranger/services/yarn/client/YarnClient.java 6eccdda 

Diff: https://reviews.apache.org/r/53421/diff/


Testing
-------

Test case:
1.Yarn is in HA mode, has active RM(URLA) and standby RM(URLB).
2.Ceate yarn service in ranger admin, set URLA for "YARN REST URL", 
and set URLB for new configuration "YARN REST URL STANDBY".
3.Kill yarn active RM process, so standby RM will be active.
4.Click "Test Connection" in create yarn service page, it should return success.
5.Then "Add new policy" for the yarn service which created above,
autocomplete for resource names can still work for configution "Queue".


Thanks,

Qiang Zhang


Re: Review Request 53421: Ranger admin support yarn HA

Posted by Qiang Zhang <zh...@zte.com.cn>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/53421/
-----------------------------------------------------------

(Updated \u5341\u4e00\u6708 18, 2016, 7:41 a.m.)


Review request for ranger, Don Bosco Durai, Madhan Neethiraj, Ramesh Mani, and Velmurugan Periasamy.


Changes
-------

Change the code to have a config to hold the list of RMs and then find which one is active 
and use it for the Lookup / Test Connection in Ranger.


Bugs: RANGER-1201
    https://issues.apache.org/jira/browse/RANGER-1201


Repository: ranger


Description (updated)
-------

Solution:To improve yarn rest url configuration support the list of RMs in create yarn service page, the list of RMs can be split by ',' or ';'


Diffs (updated)
-----

  plugin-yarn/src/main/java/org/apache/ranger/services/yarn/client/YarnClient.java 6eccdda 

Diff: https://reviews.apache.org/r/53421/diff/


Testing (updated)
-------

Test case:
1.Yarn is in HA mode, has active RM(URLA) and standby RM(URLB).
2.Ceate yarn service in ranger admin, set "URLA?URLB" or "URLA;URLB" for "YARN REST URL".
3.Kill yarn active RM process, so standby RM will be active.
4.Click "Test Connection" in create yarn service page, it should return success.
5.Then "Add new policy" for the yarn service which created above,
autocomplete for resource names can still work for configution "Queue".


Thanks,

Qiang Zhang