[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-29 Thread Bikas Saha (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13722809#comment-13722809
 ] 

Bikas Saha commented on YARN-945:
-

From what I see, your patch makes it fairly straightforward to add a 
YARNConfiguration.ClusterName that can be used as the amrmtoken's service at 
the RM. Then the state store can use it as the lookup key instead of its own 
key. And ClientRMProxy can use that to find the amrmtoken from the UGI and add 
a new entry with the correct token service. We can do that via YARN-986.
+1 pending Jenkins.

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Affects Versions: 2.1.0-beta
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
Priority: Blocker
 Fix For: 2.1.0-beta

 Attachments: nm.log, rm.log, YARN-945-20130728.txt, 
 YARN-945-20130729.txt, yarn-site.xml


 509 2013-07-19 15:53:55,569 INFO org.apache.hadoop.ipc.Server: IPC Server 
 listener on 54313: readAndProcess from client 127.0.0.1   threw exception 
 [org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
 not enabled.  Available:[TOKEN]]
 510 org.apache.hadoop.security.AccessControlException: SIMPLE authentication 
 is not enabled.  Available:[TOKEN]
 511   at 
 org.apache.hadoop.ipc.Server$Connection.initializeAuthContext(Server.java:1531)
 512   at 
 org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1482)
 513   at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:788)
 514   at 
 org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:587)
 515   at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:562)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-29 Thread Vinod Kumar Vavilapalli (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13723052#comment-13723052
 ] 

Vinod Kumar Vavilapalli commented on YARN-945:
--

The test issue with TestAMAuthorization is being fixed at YARN-961. 
TestNMClient failure is tracked at YARN-906.

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Affects Versions: 2.1.0-beta
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
Priority: Blocker
 Fix For: 2.1.0-beta

 Attachments: nm.log, rm.log, YARN-945-20130728.txt, 
 YARN-945-20130729.txt, yarn-site.xml


 509 2013-07-19 15:53:55,569 INFO org.apache.hadoop.ipc.Server: IPC Server 
 listener on 54313: readAndProcess from client 127.0.0.1   threw exception 
 [org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
 not enabled.  Available:[TOKEN]]
 510 org.apache.hadoop.security.AccessControlException: SIMPLE authentication 
 is not enabled.  Available:[TOKEN]
 511   at 
 org.apache.hadoop.ipc.Server$Connection.initializeAuthContext(Server.java:1531)
 512   at 
 org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1482)
 513   at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:788)
 514   at 
 org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:587)
 515   at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:562)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-29 Thread Vinod Kumar Vavilapalli (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13723061#comment-13723061
 ] 

Vinod Kumar Vavilapalli commented on YARN-945:
--

Rekicking Jenkins after YARN-961.

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Affects Versions: 2.1.0-beta
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
Priority: Blocker
 Fix For: 2.1.0-beta

 Attachments: nm.log, rm.log, YARN-945-20130728.txt, 
 YARN-945-20130729.txt, yarn-site.xml


 509 2013-07-19 15:53:55,569 INFO org.apache.hadoop.ipc.Server: IPC Server 
 listener on 54313: readAndProcess from client 127.0.0.1   threw exception 
 [org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
 not enabled.  Available:[TOKEN]]
 510 org.apache.hadoop.security.AccessControlException: SIMPLE authentication 
 is not enabled.  Available:[TOKEN]
 511   at 
 org.apache.hadoop.ipc.Server$Connection.initializeAuthContext(Server.java:1531)
 512   at 
 org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1482)
 513   at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:788)
 514   at 
 org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:587)
 515   at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:562)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-29 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13723090#comment-13723090
 ] 

Hadoop QA commented on YARN-945:


{color:green}+1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12594734/YARN-945-20130729.txt
  against trunk revision .

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 5 new 
or modified test files.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:green}+1 javadoc{color}.  The javadoc tool did not generate any 
warning messages.

{color:green}+1 eclipse:eclipse{color}.  The patch built with 
eclipse:eclipse.

{color:green}+1 findbugs{color}.  The patch does not introduce any new 
Findbugs (version 1.3.9) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:green}+1 core tests{color}.  The patch passed unit tests in 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-unmanaged-am-launcher
 hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager.

{color:green}+1 contrib tests{color}.  The patch passed contrib unit tests.

Test results: 
https://builds.apache.org/job/PreCommit-YARN-Build/1610//testReport/
Console output: https://builds.apache.org/job/PreCommit-YARN-Build/1610//console

This message is automatically generated.

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Affects Versions: 2.1.0-beta
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
Priority: Blocker
 Fix For: 2.1.0-beta

 Attachments: nm.log, rm.log, YARN-945-20130728.txt, 
 YARN-945-20130729.txt, yarn-site.xml


 509 2013-07-19 15:53:55,569 INFO org.apache.hadoop.ipc.Server: IPC Server 
 listener on 54313: readAndProcess from client 127.0.0.1   threw exception 
 [org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
 not enabled.  Available:[TOKEN]]
 510 org.apache.hadoop.security.AccessControlException: SIMPLE authentication 
 is not enabled.  Available:[TOKEN]
 511   at 
 org.apache.hadoop.ipc.Server$Connection.initializeAuthContext(Server.java:1531)
 512   at 
 org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1482)
 513   at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:788)
 514   at 
 org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:587)
 515   at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:562)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-28 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13722041#comment-13722041
 ] 

Hadoop QA commented on YARN-945:


{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12594608/YARN-945-20130728.txt
  against trunk revision .

{color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

{color:green}+1 tests included{color}.  The patch appears to include 5 new 
or modified test files.

{color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

{color:green}+1 javadoc{color}.  The javadoc tool did not generate any 
warning messages.

{color:green}+1 eclipse:eclipse{color}.  The patch built with 
eclipse:eclipse.

{color:green}+1 findbugs{color}.  The patch does not introduce any new 
Findbugs (version 1.3.9) warnings.

{color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

{color:red}-1 core tests{color}.  The patch failed these unit tests in 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager:

  org.apache.hadoop.yarn.client.api.impl.TestNMClient

{color:green}+1 contrib tests{color}.  The patch passed contrib unit tests.

Test results: 
https://builds.apache.org/job/PreCommit-YARN-Build/1598//testReport/
Console output: https://builds.apache.org/job/PreCommit-YARN-Build/1598//console

This message is automatically generated.

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Affects Versions: 2.1.0-beta
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
Priority: Blocker
 Fix For: 2.1.0-beta

 Attachments: nm.log, rm.log, YARN-945-20130728.txt, yarn-site.xml


 509 2013-07-19 15:53:55,569 INFO org.apache.hadoop.ipc.Server: IPC Server 
 listener on 54313: readAndProcess from client 127.0.0.1   threw exception 
 [org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
 not enabled.  Available:[TOKEN]]
 510 org.apache.hadoop.security.AccessControlException: SIMPLE authentication 
 is not enabled.  Available:[TOKEN]
 511   at 
 org.apache.hadoop.ipc.Server$Connection.initializeAuthContext(Server.java:1531)
 512   at 
 org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1482)
 513   at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:788)
 514   at 
 org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:587)
 515   at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:562)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-28 Thread Bikas Saha (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13722086#comment-13722086
 ] 

Bikas Saha commented on YARN-945:
-

Looks good overall.

To be clear, this works for cases in which the UGI already contains the token 
and then, when we first initialize the protocol proxy via the ClientRMProxy, 
the ClientRMProxy layer adds the correct service addr to the token. Is that 
correct? The token is obtained by either the client (unmanaged AM) or set 
directly by the RM (managed AM) and gets populated in the AM's UGI before the 
AM creates the AM-RM proxy. When the AM-RM proxy is created then the service 
is initialized in the token by ClientRMProxy.
In that case, does YARNClientImpl need to do setTokenService (with static RM 
address lookup) on the token in YarnClient.getAMRMToken()? The 
unmanagedAMLauncher or other user of YarnClient.getAMRMToken() needs to simply 
populate the AM's UGI correctly without doing any translation right? In that 
case, can we remove the YarnClient side translation code 


Could you please open jiras for the TODO's so that we dont lose them. And refer 
the jira numbers in the TODO's.

I wish we could leverage RMProxy or something like that in the tests instead of 
having to replicate the setTokenService() code in so many places. Can leave it 
for a separate jira.

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Affects Versions: 2.1.0-beta
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
Priority: Blocker
 Fix For: 2.1.0-beta

 Attachments: nm.log, rm.log, YARN-945-20130728.txt, yarn-site.xml


 509 2013-07-19 15:53:55,569 INFO org.apache.hadoop.ipc.Server: IPC Server 
 listener on 54313: readAndProcess from client 127.0.0.1   threw exception 
 [org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
 not enabled.  Available:[TOKEN]]
 510 org.apache.hadoop.security.AccessControlException: SIMPLE authentication 
 is not enabled.  Available:[TOKEN]
 511   at 
 org.apache.hadoop.ipc.Server$Connection.initializeAuthContext(Server.java:1531)
 512   at 
 org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1482)
 513   at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:788)
 514   at 
 org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:587)
 515   at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:562)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-24 Thread Daryn Sharp (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13718975#comment-13718975
 ] 

Daryn Sharp commented on YARN-945:
--

Please be sure I get a chance to look at the patch.

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Affects Versions: 2.1.0-beta
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
Priority: Blocker
 Fix For: 2.1.0-beta

 Attachments: nm.log, rm.log, yarn-site.xml


 509 2013-07-19 15:53:55,569 INFO org.apache.hadoop.ipc.Server: IPC Server 
 listener on 54313: readAndProcess from client 127.0.0.1   threw exception 
 [org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
 not enabled.  Available:[TOKEN]]
 510 org.apache.hadoop.security.AccessControlException: SIMPLE authentication 
 is not enabled.  Available:[TOKEN]
 511   at 
 org.apache.hadoop.ipc.Server$Connection.initializeAuthContext(Server.java:1531)
 512   at 
 org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1482)
 513   at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:788)
 514   at 
 org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:587)
 515   at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:562)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-23 Thread Alejandro Abdelnur (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13717737#comment-13717737
 ] 

Alejandro Abdelnur commented on YARN-945:
-

[~bikassaha] 0.0.0.0 will listen in ALL interfaces, localhost will listen only 
on localhost. So I think we should not change it to localhost. Instead, we 
should get the receiver of the token to set the service using the address used 
for the RPC.

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Affects Versions: 2.1.0-beta
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
Priority: Blocker
 Fix For: 2.1.0-beta

 Attachments: nm.log, rm.log, yarn-site.xml


 509 2013-07-19 15:53:55,569 INFO org.apache.hadoop.ipc.Server: IPC Server 
 listener on 54313: readAndProcess from client 127.0.0.1   threw exception 
 [org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
 not enabled.  Available:[TOKEN]]
 510 org.apache.hadoop.security.AccessControlException: SIMPLE authentication 
 is not enabled.  Available:[TOKEN]
 511   at 
 org.apache.hadoop.ipc.Server$Connection.initializeAuthContext(Server.java:1531)
 512   at 
 org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1482)
 513   at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:788)
 514   at 
 org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:587)
 515   at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:562)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-19 Thread Bikas Saha (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13714196#comment-13714196
 ] 

Bikas Saha commented on YARN-945:
-

This happens for TEZ and MR AMs on single node cluster. Repro on a different 
machine too.

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
 Attachments: nm.log, rm.log, yarn-site.xml


 509 2013-07-19 15:53:55,569 INFO org.apache.hadoop.ipc.Server: IPC Server 
 listener on 54313: readAndProcess from client 127.0.0.1   threw exception 
 [org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
 not enabled.  Available:[TOKEN]]
 510 org.apache.hadoop.security.AccessControlException: SIMPLE authentication 
 is not enabled.  Available:[TOKEN]
 511   at 
 org.apache.hadoop.ipc.Server$Connection.initializeAuthContext(Server.java:1531)
 512   at 
 org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1482)
 513   at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:788)
 514   at 
 org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:587)
 515   at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:562)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-19 Thread Hitesh Shah (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13714266#comment-13714266
 ] 

Hitesh Shah commented on YARN-945:
--

am log has:

{code}
2013-07-19 17:26:28,837 DEBUG [main] org.apache.hadoop.service.AbstractService: 
noteFailure org.apache.hadoop.yarn.exceptions.YarnRuntimeException: 
org.apache.hadoop.security.AccessControlException: SIMPLE authentication is not 
enabled.  Available:[TOKEN]
2013-07-19 17:26:28,837 INFO [main] org.apache.hadoop.service.AbstractService: 
Service org.apache.hadoop.mapreduce.v2.app.MRAppMaster failed in state STARTED; 
cause: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: 
org.apache.hadoop.security.AccessControlException: SIMPLE authentication is not 
enabled.  Available:[TOKEN]
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: 
org.apache.hadoop.security.AccessControlException: SIMPLE authentication is not 
enabled.  Available:[TOKEN]
at 
org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator.register(RMCommunicator.java:159)
at 
org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator.serviceStart(RMCommunicator.java:107)
at 
org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator.serviceStart(RMContainerAllocator.java:213)
at 
org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
at 
org.apache.hadoop.mapreduce.v2.app.MRAppMaster$ContainerAllocatorRouter.serviceStart(MRAppMaster.java:789)
at 
org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
at 
org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:101)
at 
org.apache.hadoop.mapreduce.v2.app.MRAppMaster.serviceStart(MRAppMaster.java:1019)
at 
org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
at 
org.apache.hadoop.mapreduce.v2.app.MRAppMaster$1.run(MRAppMaster.java:1401)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1493)
at 
org.apache.hadoop.mapreduce.v2.app.MRAppMaster.initAndStartAppMaster(MRAppMaster.java:1397)
at 
org.apache.hadoop.mapreduce.v2.app.MRAppMaster.main(MRAppMaster.java:1330)
Caused by: org.apache.hadoop.security.AccessControlException: SIMPLE 
authentication is not enabled.  Available:[TOKEN]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at 
org.apache.hadoop.yarn.ipc.RPCUtil.instantiateException(RPCUtil.java:53)
at 
org.apache.hadoop.yarn.ipc.RPCUtil.unwrapAndThrowException(RPCUtil.java:104)
at 
org.apache.hadoop.yarn.api.impl.pb.client.ApplicationMasterProtocolPBClientImpl.registerApplicationMaster(ApplicationMasterProtocolPBClientImpl.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:175)
at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:94)
at com.sun.proxy.$Proxy29.registerApplicationMaster(Unknown Source)
at 
org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator.register(RMCommunicator.java:147)
... 14 more
Caused by: 
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException):
 SIMPLE authentication is not enabled.  Available:[TOKEN]
at org.apache.hadoop.ipc.Client.call(Client.java:1433)
at org.apache.hadoop.ipc.Client.call(Client.java:1385)
at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)
at com.sun.proxy.$Proxy28.registerApplicationMaster(Unknown Source)
at 
org.apache.hadoop.yarn.api.impl.pb.client.ApplicationMasterProtocolPBClientImpl.registerApplicationMaster(ApplicationMasterProtocolPBClientImpl.java:106)

{code}

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
 Attachments: nm.log, rm.log, yarn-site.xml


 509 

[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-19 Thread Omkar Vinit Joshi (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13714294#comment-13714294
 ] 

Omkar Vinit Joshi commented on YARN-945:


thanks [~vinodkv] .. does this help? Should we really fix this 
[Setting conf parameter | 
https://issues.apache.org/jira/browse/YARN-944?focusedCommentId=13714291page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13714291]

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
 Attachments: nm.log, rm.log, yarn-site.xml


 509 2013-07-19 15:53:55,569 INFO org.apache.hadoop.ipc.Server: IPC Server 
 listener on 54313: readAndProcess from client 127.0.0.1   threw exception 
 [org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
 not enabled.  Available:[TOKEN]]
 510 org.apache.hadoop.security.AccessControlException: SIMPLE authentication 
 is not enabled.  Available:[TOKEN]
 511   at 
 org.apache.hadoop.ipc.Server$Connection.initializeAuthContext(Server.java:1531)
 512   at 
 org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1482)
 513   at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:788)
 514   at 
 org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:587)
 515   at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:562)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-19 Thread Bikas Saha (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13714326#comment-13714326
 ] 

Bikas Saha commented on YARN-945:
-

Pasting comment from YARN-944 to this jira where its relevant.

By default resolve ip is set to true...
boolean useIp = conf.getBoolean(
  CommonConfigurationKeys.HADOOP_SECURITY_TOKEN_SERVICE_USE_IP,
  CommonConfigurationKeys.HADOOP_SECURITY_TOKEN_SERVICE_USE_IP_DEFAULT);
setTokenServiceUseIp(useIp);
can you try setting below parameter?
   property   
 
 nameyarn.resourcemanager.scheduler.address/name
 
 valuelocalhost:54313/value  !-- your resource manager scheduler 
address --
 descriptionhost is the hostname of the resourcemanager and port is the 
port
   on which the Applications in the cluster talk to the Resource Manager.   
 
 /description 
 
   /property
I don't know whether we need to fix this..

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
 Attachments: nm.log, rm.log, yarn-site.xml


 509 2013-07-19 15:53:55,569 INFO org.apache.hadoop.ipc.Server: IPC Server 
 listener on 54313: readAndProcess from client 127.0.0.1   threw exception 
 [org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
 not enabled.  Available:[TOKEN]]
 510 org.apache.hadoop.security.AccessControlException: SIMPLE authentication 
 is not enabled.  Available:[TOKEN]
 511   at 
 org.apache.hadoop.ipc.Server$Connection.initializeAuthContext(Server.java:1531)
 512   at 
 org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1482)
 513   at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:788)
 514   at 
 org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:587)
 515   at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:562)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (YARN-945) AM register failing after AMRMToken

2013-07-19 Thread Bikas Saha (JIRA)

[ 
https://issues.apache.org/jira/browse/YARN-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13714331#comment-13714331
 ] 

Bikas Saha commented on YARN-945:
-

I have tried with the above setting. It works. However, we need to verify if 
this needs to be fixed. Its common practice to use 0.0.0.0 instead of localhost 
in the settings. In fact, its the default value in yarn-defaults.xml as of 
today. Ideally it should just work. If we decide to not do so then we should 
change yarn-defaults.xml and also document this extremely clearly.

 AM register failing after AMRMToken
 ---

 Key: YARN-945
 URL: https://issues.apache.org/jira/browse/YARN-945
 Project: Hadoop YARN
  Issue Type: Bug
Reporter: Bikas Saha
Assignee: Vinod Kumar Vavilapalli
 Attachments: nm.log, rm.log, yarn-site.xml


 509 2013-07-19 15:53:55,569 INFO org.apache.hadoop.ipc.Server: IPC Server 
 listener on 54313: readAndProcess from client 127.0.0.1   threw exception 
 [org.apache.hadoop.security.AccessControlException: SIMPLE authentication is 
 not enabled.  Available:[TOKEN]]
 510 org.apache.hadoop.security.AccessControlException: SIMPLE authentication 
 is not enabled.  Available:[TOKEN]
 511   at 
 org.apache.hadoop.ipc.Server$Connection.initializeAuthContext(Server.java:1531)
 512   at 
 org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1482)
 513   at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:788)
 514   at 
 org.apache.hadoop.ipc.Server$Listener$Reader.doRunLoop(Server.java:587)
 515   at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:562)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira