You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Ramya Sunil (Created) (JIRA)" <ji...@apache.org> on 2012/02/06 21:28:00 UTC
[jira] [Created] (MAPREDUCE-3819) Exception while renewing
delegation token
Exception while renewing delegation token
-----------------------------------------
Key: MAPREDUCE-3819
URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
Project: Hadoop Map/Reduce
Issue Type: Bug
Components: mrv2
Affects Versions: 0.23.1
Reporter: Ramya Sunil
Priority: Minor
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Mahadev konar (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahadev konar updated MAPREDUCE-3819:
-------------------------------------
Priority: Major (was: Minor)
I dont think this is harmless. We should find out whats the issue here.
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Ramya Sunil (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207114#comment-13207114 ]
Ramya Sunil commented on MAPREDUCE-3819:
----------------------------------------
bq. How easy is this to reproduce? Do I just need to start running map/reduce jobs, and it starts to show up eventually? Do these need to be long running jobs?
You just need to start MR jobs and it starts showing up. They dont need to be long running.
bq. Could you please verify that the following is set in your resource manager configuration "dfs.namenode.kerberos.principal"
Verified and it is correctly set in the RM configs.
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Assignee: Robert Joseph Evans
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Ramya Sunil (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201557#comment-13201557 ]
Ramya Sunil commented on MAPREDUCE-3819:
----------------------------------------
Exception seen in the RM logs:
{noformat}
ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:<RM principal>/<RMhostname>@<REALM> (auth:KERBEROS) cause:java.io.IOException: Failed to specify server's Kerberos principal name
WARN org.apache.hadoop.ipc.Client: Couldn't setup connection for <RM principal>/<RMhostname>@<REALM> to null
ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:<RM principal>/<RMhostname>@<REALM> (auth:KERBEROS) cause:java.io.IOException: Couldn't setup connection for <RM principal>/<RMhostname>@<REALM> to null
ERROR org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:<RM principal>/<RMhostname>@<REALM> (auth:KERBEROS) cause:java.io.IOException: Failed on local exception: java.io.IOException: Couldn't setup connection for <RM principal>/<RMhostname>@<REALM> to null; Host Details : local host is: "<RM hostname>/<RM IP>"; destination host is: ""<NN hostname>
":8020;
ERROR org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer: Exception renewing tokenIdent: x y z, Kind: HDFS_DELEGATION_TOKEN, Service: <NN IP>:8020. Not rescheduled
java.io.IOException: Failed on local exception: java.io.IOException: Couldn't setup connection for <RM principal>/<RMhostname>@<REALM> to null; Host Details : local host is: "<RM hostname>/<RM IP>";
destination host is: ""<NN hostname>t":8020;
at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:724)
at org.apache.hadoop.ipc.Client.call(Client.java:1090)
at org.apache.hadoop.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:193)
at $Proxy24.renewDelegationToken(Unknown Source)
at org.apache.hadoop.hdfs.DFSClient$Renewer.renew(DFSClient.java:619)
at org.apache.hadoop.security.token.Token.renew(Token.java:312)
at org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$RenewalTimerTask$1.run(DelegationTokenRenewer.java:317)
at org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$RenewalTimerTask$1.run(DelegationTokenRenewer.java:313)
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:1177)
at org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$RenewalTimerTask.run(DelegationTokenRenewer.java:312)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.io.IOException: Couldn't setup connection for <RM principal>/<RMhostname>@<REALM> to null
at org.apache.hadoop.ipc.Client$Connection$1.run(Client.java:528)
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:1177)
at org.apache.hadoop.ipc.Client$Connection.handleSaslConnectionFailure(Client.java:500)
at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:584)
at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:206)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1196)
at org.apache.hadoop.ipc.Client.call(Client.java:1066)
... 12 more
Caused by: java.io.IOException: Failed to specify server's Kerberos principal name
at org.apache.hadoop.security.SaslRpcClient.<init>(SaslRpcClient.java:88)
at org.apache.hadoop.ipc.Client$Connection.setupSaslConnection(Client.java:407)
at org.apache.hadoop.ipc.Client$Connection.access$1200(Client.java:206)
at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:577)
at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:574)
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:1177)
at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:573)
... 15 more
{noformat}
Seems harmless at the moment but need to debug.
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Priority: Minor
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Robert Joseph Evans (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215881#comment-13215881 ]
Robert Joseph Evans commented on MAPREDUCE-3819:
------------------------------------------------
Sorry I have been dealing with other things that have come up, and only now was I able to get back to this issue.
I have added some debug statements to the Security Utils, and indeed the config option dfs.namenode.kerberos.principal is coming back as null. This does not mean that it is not set. I grepped through the configs and found it set in hdfs-site.xml. I need to see if there is something about the RM that it is not loading this resource, or what.
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Assignee: Robert Joseph Evans
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Mahadev konar (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahadev konar updated MAPREDUCE-3819:
-------------------------------------
Priority: Critical (was: Major)
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Robert Joseph Evans (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Joseph Evans reassigned MAPREDUCE-3819:
----------------------------------------------
Assignee: Robert Joseph Evans
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Assignee: Robert Joseph Evans
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Mahadev konar (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mahadev konar updated MAPREDUCE-3819:
-------------------------------------
Target Version/s: 0.23.2
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Assignee: Robert Joseph Evans
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Mahadev konar (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215930#comment-13215930 ]
Mahadev konar commented on MAPREDUCE-3819:
------------------------------------------
Hmmm,
This is very interesting. Would making the Renewer non static work?
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Assignee: Robert Joseph Evans
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Robert Joseph Evans (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207006#comment-13207006 ]
Robert Joseph Evans commented on MAPREDUCE-3819:
------------------------------------------------
I am willing to take a look at this. How easy is this to reproduce? Do I just need to start running map/reduce jobs, and it starts to show up eventually? Do these need to be long running jobs? From what I have seen some of the renewal code has hard coded values to renew once a day, but I could be wrong.
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Assignee: Robert Joseph Evans
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Robert Joseph Evans (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215915#comment-13215915 ]
Robert Joseph Evans commented on MAPREDUCE-3819:
------------------------------------------------
OK So the issue is that Tokens and Renewal of the tokens has been abstracted away so much that the RM has no direct reference to HDFS at all. The DFSClient.Renewer is loaded using a ServiceLoader and there is no reference to HdfsConfiguration from DFSClient.Renewer. The best I can think of is to create a static method in HdfsConfiguration that is a noop, but documents what is happening, and have it called from DFSClient.Renewer. Without the method we run the risk of having someone clean up code that is not needed and have these things go away.
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Assignee: Robert Joseph Evans
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Robert Joseph Evans (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207047#comment-13207047 ]
Robert Joseph Evans commented on MAPREDUCE-3819:
------------------------------------------------
>From looking at the code there appear to be a few different possibilities here.
# the protocol class is null.
# SecurityUtil.securityInfoProviders is some how not loading the AnnotatedSecurityInfo class.
# the protocol class is not annotated correctly.
# the key returned by the annotation is not set.
One and Three seem very unlikely, because that code has worked before. Two also seems very unlikely because the AnnotatedSecurityInfo class and the config file for the ServiceLoader is in the same jar as SecurityUtils itself. Found also seems unlikely because the NodeManagers would in theory use the same config and are able to talk to the NN, but this is the most likely culprit. Especially because the RM really does not interact with HDFS at all except here to renew tokens, so if it were misconfigured then the rest of the RM could keep working just fine.
@Ramya,
Could you please verify that the following is set in your resource manager configuration "dfs.namenode.kerberos.principal"
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Assignee: Robert Joseph Evans
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Robert Joseph Evans (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215896#comment-13215896 ]
Robert Joseph Evans commented on MAPREDUCE-3819:
------------------------------------------------
Yes, the issue is with the default HDFS resources not being loaded by the RM. When I added the following to SecurityUtil.java, just as a hack to test this.
{code}
static {
// adds the default HDFS resources
Configuration.addDefaultResource("hdfs-default.xml");
Configuration.addDefaultResource("hdfs-site.xml");
}
{code}
it worked.
I will try to track down where the proper place is to add a reference to HdfConfiguration where the confs are loaded.
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Assignee: Robert Joseph Evans
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Daryn Sharp (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201638#comment-13201638 ]
Daryn Sharp commented on MAPREDUCE-3819:
----------------------------------------
No, Mahadev is right, this is not harmless. The interesting part of the log is:
{{Couldn't setup connection for <RM principal>/<RMhostname>@<REALM> to *null*}}
There was a similar issue with the JHS where the "to null" error occurred when the service protocol wasn't correctly defined.
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (MAPREDUCE-3819) Exception while renewing
delegation token
Posted by "Robert Joseph Evans (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAPREDUCE-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207254#comment-13207254 ]
Robert Joseph Evans commented on MAPREDUCE-3819:
------------------------------------------------
OK I am seeing it in our clusters too, and I have also verified the configuration. I will dig into this a bit more and see what I can come up with.
> Exception while renewing delegation token
> -----------------------------------------
>
> Key: MAPREDUCE-3819
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3819
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.1
> Reporter: Ramya Sunil
> Assignee: Robert Joseph Evans
> Priority: Critical
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira