You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Abhay Kulkarni <ak...@hortonworks.com> on 2018/01/03 20:28:20 UTC

Review Request 64926: Create default YARN policy with correct policy-resource value

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

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


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


Repository: ranger


Description
-------

Default YARN policy, created when a YARN service is created, has ".*" as the policy-value. As this policy needs to match all possible queues, it should have "*" as the policy-value.

This patch should fix an earlier incomplete fix which set "*.*" as the policy-value for the default policy. ( https://issues.apache.org/jira/secure/attachment/12902787/0001-RANGER-1932.patch)


Diffs
-----

  plugin-yarn/src/main/java/org/apache/ranger/services/yarn/RangerServiceYarn.java a10c1ca 


Diff: https://reviews.apache.org/r/64926/diff/1/


Testing
-------

Passed all unit tests.


Thanks,

Abhay Kulkarni


Re: Review Request 64926: Create default YARN policy with correct policy-resource value

Posted by Velmurugan Periasamy <vp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64926/#review194719
-----------------------------------------------------------


Ship it!




Ship It!

- Velmurugan Periasamy


On Jan. 3, 2018, 9:09 p.m., Abhay Kulkarni wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/64926/
> -----------------------------------------------------------
> 
> (Updated Jan. 3, 2018, 9:09 p.m.)
> 
> 
> Review request for ranger, Madhan Neethiraj, Ramesh Mani, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1932
>     https://issues.apache.org/jira/browse/RANGER-1932
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Default YARN policy, created when a YARN service is created, has ".*" as the policy-value. As this policy needs to match all possible queues, it should have "*" as the policy-value.
> 
> This patch should fix an earlier incomplete fix which set "*.*" as the policy-value for the default policy. ( https://issues.apache.org/jira/secure/attachment/12902787/0001-RANGER-1932.patch)
> 
> 
> Diffs
> -----
> 
>   plugin-yarn/src/main/java/org/apache/ranger/services/yarn/RangerServiceYarn.java a10c1ca 
> 
> 
> Diff: https://reviews.apache.org/r/64926/diff/2/
> 
> 
> Testing
> -------
> 
> Passed all unit tests.
> 
> 
> Thanks,
> 
> Abhay Kulkarni
> 
>


Re: Review Request 64926: Create default YARN policy with correct policy-resource value

Posted by Abhay Kulkarni <ak...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64926/
-----------------------------------------------------------

(Updated Jan. 3, 2018, 9:09 p.m.)


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


Changes
-------

Addressed review comments


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


Repository: ranger


Description
-------

Default YARN policy, created when a YARN service is created, has ".*" as the policy-value. As this policy needs to match all possible queues, it should have "*" as the policy-value.

This patch should fix an earlier incomplete fix which set "*.*" as the policy-value for the default policy. ( https://issues.apache.org/jira/secure/attachment/12902787/0001-RANGER-1932.patch)


Diffs (updated)
-----

  plugin-yarn/src/main/java/org/apache/ranger/services/yarn/RangerServiceYarn.java a10c1ca 


Diff: https://reviews.apache.org/r/64926/diff/2/

Changes: https://reviews.apache.org/r/64926/diff/1-2/


Testing
-------

Passed all unit tests.


Thanks,

Abhay Kulkarni


Re: Review Request 64926: Create default YARN policy with correct policy-resource value

Posted by Velmurugan Periasamy <vp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/64926/#review194714
-----------------------------------------------------------




plugin-yarn/src/main/java/org/apache/ranger/services/yarn/RangerServiceYarn.java
Line 25 (original), 25 (patched)
<https://reviews.apache.org/r/64926/#comment273645>

    Abhay - this fails with PMD violations. could you please fix them?
    
    ```
    [INFO] --- maven-pmd-plugin:3.7:check (default) @ ranger-yarn-plugin ---
    [INFO] PMD Failure: org/apache/ranger/services/yarn/RangerServiceYarn.java:25 Rule:UnusedImports Priority:4 Avoid unused imports such as 'org.apache.commons.lang.StringUtils'.
    [INFO] PMD Failure: org/apache/ranger/services/yarn/RangerServiceYarn.java:31 Rule:UnusedImports Priority:4 Avoid unused imports such as 'org.apache.ranger.plugin.resourcematcher.RangerPathResourceMatcher'.
    ```


- Velmurugan Periasamy


On Jan. 3, 2018, 8:28 p.m., Abhay Kulkarni wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/64926/
> -----------------------------------------------------------
> 
> (Updated Jan. 3, 2018, 8:28 p.m.)
> 
> 
> Review request for ranger, Madhan Neethiraj, Ramesh Mani, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-1932
>     https://issues.apache.org/jira/browse/RANGER-1932
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Default YARN policy, created when a YARN service is created, has ".*" as the policy-value. As this policy needs to match all possible queues, it should have "*" as the policy-value.
> 
> This patch should fix an earlier incomplete fix which set "*.*" as the policy-value for the default policy. ( https://issues.apache.org/jira/secure/attachment/12902787/0001-RANGER-1932.patch)
> 
> 
> Diffs
> -----
> 
>   plugin-yarn/src/main/java/org/apache/ranger/services/yarn/RangerServiceYarn.java a10c1ca 
> 
> 
> Diff: https://reviews.apache.org/r/64926/diff/1/
> 
> 
> Testing
> -------
> 
> Passed all unit tests.
> 
> 
> Thanks,
> 
> Abhay Kulkarni
> 
>