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

Oleg Zhurakousky commented on YARN-1841:
----------------------------------------

Here is all the code
{code}
ApplicationMasterProtocol applicationsManager = 
ClientRMProxy.createRMProxy(yarnConf, ApplicationMasterProtocol.class);
RegisterApplicationMasterRequest request = 
RegisterApplicationMasterRequest.newInstance("", 0, "");
RegisterApplicationMasterResponse response = 
applicationsManager.registerApplicationMaster(request);
{code}
Just stick it into the main with config pointing to the valid remote cluster.
While I understand that this really should not work (I don't even have an app 
deployed at the time of invocation of this code), the exception took me way off 
track. 


> YARN ignores/overrides explicit security settings
> -------------------------------------------------
>
>                 Key: YARN-1841
>                 URL: https://issues.apache.org/jira/browse/YARN-1841
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>    Affects Versions: 2.3.0
>            Reporter: Oleg Zhurakousky
>
> core-site.xml explicitly sets authentication as SIMPLE
> {code}
>  <property>
>     <name>hadoop.security.authentication</name>
>     <value>simple</value>
>     <description>Simple authentication</description>
>   </property>
> {code}
> However any attempt to register ApplicationMaster on the remote YARN cluster 
> results in 
> {code}
> org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
> not enabled.  Available:[TOKEN]
> . . .
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to