What Should I Do If HDFS_DELEGATION_TOKEN Cannot Be Found in the Cache?
Question
Why cannot HDFS_DELEGATION_TOKEN be found in the cache in a cluster with Kerberos authentication enabled?
Answer
In MapReduce, HDFS_DELEGATION_TOKEN is deleted by default after a task is complete. If HDFS_DELEGATION_TOKEN is used in the next task, it will not be found in the cache.
To use the same token again in subsequent work, configure parameters for MapReduce tasks. If this parameter is set to false, the user can use the same token again.
jobConf.setBoolean("mapreduce.job.complete.cancel.delegation.tokens", false);
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.