TestBinaryTokenFile.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:hadoop 作者:
private void setupBinaryTokenFile(Job job) {
// Credentials in the job will not have delegation tokens
// because security is disabled. Fetch delegation tokens
// and store in binary token file.
  createBinaryTokenFile(job.getConfiguration());
  job.getConfiguration().set(MRJobConfig.MAPREDUCE_JOB_CREDENTIALS_BINARY,
      binaryTokenFileName.toString());
  // NB: the MRJobConfig.MAPREDUCE_JOB_CREDENTIALS_BINARY
  // key now gets deleted from config,
  // so it's not accessible in the job's config. So,
  // we use another key to pass the file name into the job configuration:
  job.getConfiguration().set(KEY_SECURITY_TOKEN_FILE_NAME,
      binaryTokenFileName.toString());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号