Help Center/ MapReduce Service/ Component Operation Guide (Paris Region)/ Using Yarn/ Common Issues About Yarn/ Why the Job Fails with HDFS_DELEGATION_TOKEN Expired Exception?
Updated on 2022-02-22 GMT+08:00

Why the Job Fails with HDFS_DELEGATION_TOKEN Expired Exception?

Question

Why is the HDFS_DELEGATION_TOKEN expired exception reported when a job fails in security mode?

Answer

HDFS_DELEGATION_TOKEN expires because the token is not updated or it is accessed after max. lifetime.

Ensure the following parameter value of max. lifetime of the token is greater than the job running time.

dfs.namenode.delegation.token.max-lifetime=604800000 (1 week by default)

Go to the All Configurations page of HDFS by referring to Modifying Cluster Service Configuration Parameters and search for this parameter in the search box.

You are advised to set this parameter to a value that is multiple times of the number of hours within the max. lifecycle of the token.