[ 
https://issues.apache.org/jira/browse/YARN-10110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17027301#comment-17027301
 ] 

Prabhu Joseph commented on YARN-10110:
--------------------------------------

[~BilwaST] Thanks for the patch.

1. In RouterPolicyProvider.java, the field {{routerPolicyProvider}} needs to be 
volatile.

Reference: [https://www.baeldung.com/java-singleton-double-checked-locking]

2. ClientRMService, ApplicationMasterService , ResourceTrackerService and 
AdminService all reuses the RMPolicyProvider. I think RouterClientRMService can 
also use the same RMPolicyProvider.

3. Can you include a test case as well, if not, Please justify why no new tests 
are needed for this patch.

 

> In Federation Secure cluster Application submission fails when authorization 
> is enabled
> ---------------------------------------------------------------------------------------
>
>                 Key: YARN-10110
>                 URL: https://issues.apache.org/jira/browse/YARN-10110
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Sushanta Sen
>            Assignee: Bilwa S T
>            Priority: Blocker
>         Attachments: YARN-10110.001.patch
>
>
> 【Precondition】:
> 1. Secure Federated cluster is available
> 2. Add the below configuration in Router and client core-site.xml
> hadoop.security.authorization= true 
> 3. Restart the router service
> 【Test step】:
> 1. Go to router client bin path and submit a MR PI job
> 2. Observe the client console screen
> 【Expect Output】:
> No error should be thrown and Job should be successful
> 【Actual Output】:
> Job failed prompting "Protocol interface 
> org.apache.hadoop.yarn.api.ApplicationClientProtocolPB is not known.,"
> 【Additional Note】:
>  But on setting the parameter as false, job is submitted and success.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to