for (Token<?> token : tokens) {
log.info("Got delegation token for " + fs.getUri() + "; " + token);
}
}
DataOutputBuffer dob = new DataOutputBuffer();
credentials.writeTokenStorageToStream(dob);
ByteBuffer containerToken = ByteBuffer.wrap(dob.getData(), 0, dob.getLength());
context.setTokens(containerToken);
}
} catch (IOException e) {
log.error("Error setting tokens for appmaster launch context", e);