Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Actions of long running Spark streaming job fails with "HDFS_DELEGATION_TOKEN token can't be found in cache"

avatar
New Contributor

We are running a production spark streaming job on a Kerberised CDH cluster and some of its actions fails less than 4 days with the following error condition:

org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.token.SecretManager$InvalidToken): token (HDFS_DELEGATION_TOKEN token <token_id> for <user>) can't be found in cache

 

Spark submission script already contains the following settings:

--conf spark.yarn.principal=<principal>
--conf spark.yarn.keytab=<keytab_location_on_disk>
--conf spark.hadoop.fs.hdfs.impl.disable.cache=true

 

Spark version is 1.6.0-CDH5.11.1

OS is RHEL 6.9

 

Do anybody have further suggestions about configuration or where to look for futher information about this issue?

 

1 REPLY 1

avatar
Super Guru
@IsmailKeskin ,

--conf spark.hadoop.fs.hdfs.impl.disable.cache=true should help, if not, please also try to add
--conf mapreduce.job.complete.cancel.delegation.tokens=false

See if it helps.

Cheers
Eric