MAPREDUCE-4614. Simplify debugging a job's tokens (daryn via bobby)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1379595 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
015256524c
commit
63f941d2ad
|
@ -323,9 +323,6 @@ Release 2.1.0-alpha - Unreleased
|
||||||
MAPREDUCE-4380. Empty Userlogs directory is getting created under logs
|
MAPREDUCE-4380. Empty Userlogs directory is getting created under logs
|
||||||
directory (Devaraj K via bobby)
|
directory (Devaraj K via bobby)
|
||||||
|
|
||||||
MAPREDUCE-4612. job summary file permissions not set when its created
|
|
||||||
(tgraves via bobby)
|
|
||||||
|
|
||||||
Release 2.0.0-alpha - 05-23-2012
|
Release 2.0.0-alpha - 05-23-2012
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -856,6 +853,11 @@ Release 0.23.3 - UNRELEASED
|
||||||
MAPREDUCE-4600. TestTokenCache.java from MRV1 no longer compiles (daryn
|
MAPREDUCE-4600. TestTokenCache.java from MRV1 no longer compiles (daryn
|
||||||
via bobby)
|
via bobby)
|
||||||
|
|
||||||
|
MAPREDUCE-4612. job summary file permissions not set when its created
|
||||||
|
(tgraves via bobby)
|
||||||
|
|
||||||
|
MAPREDUCE-4614. Simplify debugging a job's tokens (daryn via bobby)
|
||||||
|
|
||||||
Release 0.23.2 - UNRELEASED
|
Release 0.23.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -93,7 +93,11 @@ public static void main(String[] args) throws Throwable {
|
||||||
// Security framework already loaded the tokens into current ugi
|
// Security framework already loaded the tokens into current ugi
|
||||||
Credentials credentials =
|
Credentials credentials =
|
||||||
UserGroupInformation.getCurrentUser().getCredentials();
|
UserGroupInformation.getCurrentUser().getCredentials();
|
||||||
|
LOG.info("Executing with tokens:");
|
||||||
|
for (Token<?> token: credentials.getAllTokens()) {
|
||||||
|
LOG.info(token);
|
||||||
|
}
|
||||||
|
|
||||||
// Create TaskUmbilicalProtocol as actual task owner.
|
// Create TaskUmbilicalProtocol as actual task owner.
|
||||||
UserGroupInformation taskOwner =
|
UserGroupInformation taskOwner =
|
||||||
UserGroupInformation.createRemoteUser(firstTaskid.getJobID().toString());
|
UserGroupInformation.createRemoteUser(firstTaskid.getJobID().toString());
|
||||||
|
|
|
@ -435,13 +435,9 @@ private void writeConf(Configuration conf, Path jobFile)
|
||||||
|
|
||||||
private void printTokens(JobID jobId,
|
private void printTokens(JobID jobId,
|
||||||
Credentials credentials) throws IOException {
|
Credentials credentials) throws IOException {
|
||||||
if (LOG.isDebugEnabled()) {
|
LOG.info("Submitting tokens for job: " + jobId);
|
||||||
LOG.debug("Printing tokens for job: " + jobId);
|
for (Token<?> token: credentials.getAllTokens()) {
|
||||||
for(Token<?> token: credentials.getAllTokens()) {
|
LOG.info(token);
|
||||||
if (token.getKind().toString().equals("HDFS_DELEGATION_TOKEN")) {
|
|
||||||
LOG.debug("Submitting with " + token);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue