|
@@ -3874,7 +3874,7 @@ public class JobTracker implements MRConstants, InterTrackerProtocol,
|
|
throw new IOException(
|
|
throw new IOException(
|
|
"Delegation Token can be issued only with kerberos authentication");
|
|
"Delegation Token can be issued only with kerberos authentication");
|
|
}
|
|
}
|
|
- String user = UserGroupInformation.getCurrentUser().getUserName();
|
|
|
|
|
|
+ String user = UserGroupInformation.getCurrentUser().getShortUserName();
|
|
return secretManager.renewToken(token, user);
|
|
return secretManager.renewToken(token, user);
|
|
}
|
|
}
|
|
|
|
|