private void obtainToken(JobConf jobConf, Context context) throws IOException, InterruptedException {
String user = context.getWorkflow().getUser();
UserGroupInformation ugi = UserGroupInformation.createProxyUser(user, UserGroupInformation.getLoginUser());
User u = User.create(ugi);
u.obtainAuthTokenForJob(jobConf);
}
private void addPropsConf(CredentialsProperties props, Configuration destConf) {
for (Map.Entry<String, String> entry : props.getProperties().entrySet()) {
destConf.set(entry.getKey(), entry.getValue());